1 From bf1103654df99d50724a022c8b9fca8908a86f50 Mon Sep 17 00:00:00 2001
2 From: Bitterblue Smith <rtl8821cerfe2@gmail.com>
3 Date: Wed, 2 Apr 2025 18:30:02 +0300
4 Subject: [PATCH] wifi: rtw88: usb: Enable switching the RTL8814AU to USB 3
6 The Realtek wifi 5 devices which support USB 3 are weird: when first
7 plugged in, they pretend to be USB 2. The driver needs to send some
8 commands to the device, which make it disappear and come back as a
11 The method used to switch the RTL8812AU also works for the RTL8814AU.
13 Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
14 Acked-by: Ping-Ke Shih <pkshih@realtek.com>
15 Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
16 Link: https://patch.msgid.link/d3608f70-e04f-4f6b-987a-022c8e317165@gmail.com
18 drivers/net/wireless/realtek/rtw88/usb.c | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
21 --- a/drivers/net/wireless/realtek/rtw88/usb.c
22 +++ b/drivers/net/wireless/realtek/rtw88/usb.c
23 @@ -1096,7 +1096,8 @@ static int rtw_usb_switch_mode_new(struc
25 static bool rtw_usb3_chip_old(u8 chip_id)
27 - return chip_id == RTW_CHIP_TYPE_8812A;
28 + return chip_id == RTW_CHIP_TYPE_8812A ||
29 + chip_id == RTW_CHIP_TYPE_8814A;
32 static bool rtw_usb3_chip_new(u8 chip_id)