rtw88: reduce polling time of IQ calibration
authorChin-Yen Lee <timlee@realtek.com>
Tue, 8 Dec 2020 01:45:03 +0000 (09:45 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 8 Dec 2020 07:35:43 +0000 (09:35 +0200)
commit3324e05eca0d14c4b970fcec63d1c113f1e76e60
tree98a59a1d73a055d1c2c609505c1a1abd3790c77b
parent91aeaf09a6eed83cae0d0fad20a97699b1c8b812
rtw88: reduce polling time of IQ calibration

When 8822CE is associating with AP, driver will poll status bit of
IQ calibration to confirm the IQ calibration is done, and then move on
the association process. Current polling time for IQ calibration is 6
seconds.

But occasionally driver fails in polling the status bit because the status
bit is not set after IQ calibration is done. When it happends, association
process will be serieously delayed up to 6 seconds. To avoid it, we reduce
polling time to 300ms, in which the IQ calibration can be done.

Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201208014503.12118-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/rtw8822c.c