]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: 8822c: add rf write protection when switching channel
authorChien-Hsun Liao <ben.liao@realtek.com>
Fri, 14 Jun 2019 07:24:08 +0000 (15:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 05:08:55 +0000 (08:08 +0300)
commit2c74461a66ec0b445001bcc82e1ea6f0466704de
treef1e2d83035742b21ecf3bc1143fe0bddebd1a4ac
parentadc6f0a0f24e4397d32d9cfb443b17a9cdc578c1
rtw88: 8822c: add rf write protection when switching channel

Collision of writing rf registers could occur if the driver writes
rf registers by direct write while the hardware is writing other rf
registers by pi write simultaneously.

Hardware pi write can be triggered by rf calibrations sometimes, so
the driver can not always write rf registers by direct write
protection. Direct write protection can make sure that there is no
hardware pi write during the direct write.

According to some experiments, if we add direct write protection
when switching channel, the performance of rf calibration will not
be affected.

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