]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw88: Add USB PHY configuration
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Wed, 1 Jan 2025 16:16:32 +0000 (18:16 +0200)
committerPing-Ke Shih <pkshih@realtek.com>
Sun, 12 Jan 2025 01:51:19 +0000 (09:51 +0800)
commit5b1b9545262b5126a3c2776e7e64ff29765cbe6e
treee108825b30133a8970ba16556c6ba0586c201baf
parent456ad3210a88745acb00a3222dc6533531a372b6
wifi: rtw88: Add USB PHY configuration

Add some extra configuration for USB devices. Currently only RTL8822BU
version (cut) D needs this. The new code makes use of the existing
usb3_param_8822b array from rtw8822b.c.

A user reported that TP-Link Archer T3U in USB 3 mode was randomly
disconnecting from USB:

[ 26.036502] usb 2-2: new SuperSpeed USB device number 3 using xhci_hcd
...
[ 27.576491] usb 2-2: USB disconnect, device number 3
[ 28.621528] usb 2-2: new SuperSpeed USB device number 4 using xhci_hcd
...
[ 45.984521] usb 2-2: USB disconnect, device number 4
...
[ 46.845585] usb 2-2: new SuperSpeed USB device number 5 using xhci_hcd
...
[ 94.400380] usb 2-2: USB disconnect, device number 5
...
[ 95.590421] usb 2-2: new SuperSpeed USB device number 6 using xhci_hcd

This patch fixes that.

Link: https://github.com/lwfinger/rtw88/issues/262
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/9d312b14-0146-4be8-9c50-ef432234db50@gmail.com
drivers/net/wireless/realtek/rtw88/reg.h
drivers/net/wireless/realtek/rtw88/usb.c