wifi: rtw89: Fix rtw89_usb_ops_mac_lv1_rcvy() for RTL8922AU

RTL8922AU uses a different register and mask to reset TX/RX. Add them
here.

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/fd6ae7f6-0035-45d8-8832-49a053fd217d@gmail.com
This commit is contained in:
Bitterblue Smith 2026-04-19 16:40:59 +03:00 committed by Ping-Ke Shih
parent 8d722eeac1
commit 6f46213403
2 changed files with 8 additions and 0 deletions

View File

@ -4806,6 +4806,10 @@
#define R_BE_LTR_LATENCY_IDX2_V1 0x361C
#define R_BE_LTR_LATENCY_IDX3_V1 0x3620
#define R_BE_USB2_WLAN_TRX_OPT_PAR2 0x41BC
#define B_BE_USB2_USBRX_RST BIT(1)
#define B_BE_USB2_USBTX_RST BIT(0)
#define R_BE_HCI_BUF_IMR 0x6018
#define B_BE_HCI_BUF_IMR_CLR 0xC0000303
#define B_BE_HCI_BUF_IMR_SET 0xC0000301

View File

@ -871,6 +871,10 @@ static int rtw89_usb_ops_mac_lv1_rcvy(struct rtw89_dev *rtwdev,
reg = R_AX_USB_WLAN0_1_V1;
mask = B_AX_USBRX_RST_V1 | B_AX_USBTX_RST_V1;
break;
case RTL8922A:
reg = R_BE_USB2_WLAN_TRX_OPT_PAR2;
mask = B_BE_USB2_USBRX_RST | B_BE_USB2_USBTX_RST;
break;
default:
rtw89_err(rtwdev, "%s: fix me\n", __func__);
return -EOPNOTSUPP;