mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
wifi: rtw89: usb: Enable RX aggregation for RTL8922AU
It uses the same settings as RTL8852CU, but the register and bit names have "BE" instead of "AX". Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com> Acked-by: Ping-Ke Shih <pkshih@realtek.com> Signed-off-by: Ping-Ke Shih <pkshih@realtek.com> Link: https://patch.msgid.link/bd9e444f-257c-48c8-8adb-f58432b2c5c2@gmail.com
This commit is contained in:
parent
0df7f0c22d
commit
32cee8a9bb
|
|
@ -803,6 +803,17 @@ static void rtw89_usb_rx_agg_cfg_v2(struct rtw89_dev *rtwdev)
|
|||
rtw89_write32(rtwdev, R_AX_RXAGG_1_V1, 0x1F);
|
||||
}
|
||||
|
||||
static void rtw89_usb_rx_agg_cfg_v3(struct rtw89_dev *rtwdev)
|
||||
{
|
||||
const u32 rxagg_0 = FIELD_PREP_CONST(B_BE_RXAGG_0_EN, 1) |
|
||||
FIELD_PREP_CONST(B_BE_RXAGG_0_NUM_TH, 255) |
|
||||
FIELD_PREP_CONST(B_BE_RXAGG_0_TIME_32US_TH, 32) |
|
||||
FIELD_PREP_CONST(B_BE_RXAGG_0_BUF_SZ_1K, 20);
|
||||
|
||||
rtw89_write32(rtwdev, R_BE_RXAGG_0_V1, rxagg_0);
|
||||
rtw89_write32(rtwdev, R_BE_RXAGG_1_V1, 0x1F);
|
||||
}
|
||||
|
||||
static void rtw89_usb_rx_agg_cfg(struct rtw89_dev *rtwdev)
|
||||
{
|
||||
switch (rtwdev->chip->chip_id) {
|
||||
|
|
@ -814,6 +825,9 @@ static void rtw89_usb_rx_agg_cfg(struct rtw89_dev *rtwdev)
|
|||
case RTL8852C:
|
||||
rtw89_usb_rx_agg_cfg_v2(rtwdev);
|
||||
break;
|
||||
case RTL8922A:
|
||||
rtw89_usb_rx_agg_cfg_v3(rtwdev);
|
||||
break;
|
||||
default:
|
||||
rtw89_warn(rtwdev, "%s: USB RX agg not support\n", __func__);
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -29,6 +29,14 @@
|
|||
|
||||
#define R_AX_RXAGG_1_V1 0x6004
|
||||
|
||||
#define R_BE_RXAGG_0_V1 0x6000
|
||||
#define B_BE_RXAGG_0_EN BIT(31)
|
||||
#define B_BE_RXAGG_0_NUM_TH GENMASK(23, 16)
|
||||
#define B_BE_RXAGG_0_TIME_32US_TH GENMASK(15, 8)
|
||||
#define B_BE_RXAGG_0_BUF_SZ_1K GENMASK(7, 0)
|
||||
|
||||
#define R_BE_RXAGG_1_V1 0x6004
|
||||
|
||||
#define R_AX_RXAGG_0 0x8900
|
||||
#define B_AX_RXAGG_0_BUF_SZ_4K GENMASK(7, 0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user