]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: 8822c: modify rf protection setting
authorChien-Hsun Liao <ben.liao@realtek.com>
Thu, 30 Jan 2020 05:31:12 +0000 (13:31 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 12 Feb 2020 16:20:40 +0000 (18:20 +0200)
commit11ad8860bf9525a8b827276fb5e752619bee680a
treef4289ca0e0d2c89091dee0b40b00e91d8faa64a9
parent516797eeb3499e9e95c443f91df82f0366e3c832
rtw88: 8822c: modify rf protection setting

According to some experiments, the original RF register protection
setting of 8822c cannot perfectly make sure that there is no hardware
PI write (direct) during direct write. Modify the setting so that the
hardware block of PI would be turned off via rtw8822c_rstb_3wire()
during the direct write, to avoid RF register racing.

Note that 8822b uses SIPI write (indirect), so 8822b does not
have such problem.

Signed-off-by: Chien-Hsun Liao <ben.liao@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Reviewed-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/phy.c
drivers/net/wireless/realtek/rtw88/rtw8822c.c
drivers/net/wireless/realtek/rtw88/rtw8822c.h