]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: rtw88: 8821cu: Fix firmware upload fail
authorBitterblue Smith <rtl8821cerfe2@gmail.com>
Thu, 29 Feb 2024 22:32:45 +0000 (00:32 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:36 +0000 (18:19 -0400)
commit40243da588a0f337b8e5460426192e9ed74f2a48
tree6ade5945033ae78916754022002bc1740f303a89
parentfa797951513c0803d59bdd0c5e21c68f5e6e9d19
wifi: rtw88: 8821cu: Fix firmware upload fail

[ Upstream commit 41a7acb7dde8395f52a707bbba7712a898dfafb0 ]

RTL8822CU, RTL8822BU, and RTL8821CU need an extra register write after
reading and writing certain addresses.

Without this, the firmware upload fails approximately more than 50% of
the time.

Tested with RTL8811CU (Tenda U9 V2.0) which is the same as RTL8821CU
but without Bluetooth.

Fixes: a82dfd33d123 ("wifi: rtw88: Add common USB chip support")
Signed-off-by: Bitterblue Smith <rtl8821cerfe2@gmail.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/f12ed39d-28e8-4b8b-8d22-447bcf295afc@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/realtek/rtw88/usb.c