Thread (37 messages) 37 messages, 8 authors, 2026-04-27

RE: [PATCH 7/9] wifi: rtw89: switch to using FIELD_GET_SIGNED()

From: Ping-Ke Shih <pkshih@realtek.com>
Date: 2026-04-20 07:51:07
Also in: linux-iio, linux-rtc, linux-wireless, lkml

Yury Norov [off-list ref] wrote:
quoted hunk ↗ jump to hunk
--- a/drivers/net/wireless/realtek/rtw89/rtw8852b_common.c
+++ b/drivers/net/wireless/realtek/rtw89/rtw8852b_common.c
@@ -206,9 +206,9 @@ static void rtw8852bx_efuse_parsing_tssi(struct rtw89_dev *rtwdev,
 static bool _decode_efuse_gain(u8 data, s8 *high, s8 *low)
 {
        if (high)
-               *high = sign_extend32(FIELD_GET(GENMASK(7,  4), data), 3);
+               *high = FIELD_GET_SIGNED(GENMASK(7,  4), data);
        if (low)
-               *low = sign_extend32(FIELD_GET(GENMASK(3,  0), data), 3);
+               *low = FIELD_GET(GENMASK(3,  0), data);
FIELD_GET_SIGNED()?
        return data != 0xff;
 }

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help