rtw88: Add delay on polling h2c command status bit
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 7 Apr 2020 07:33:31 +0000 (15:33 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 14 Apr 2020 15:07:00 +0000 (18:07 +0300)
commit6343a6d4b2130be9323f347d60af8a7ba8f7242c
tree8781088bcd50e297dd3d0d4784b75a94830378a1
parent63e49a9fdac1b4e97ac26cb3fe953f210d83bc53
rtw88: Add delay on polling h2c command status bit

On some systems we can constanly see rtw88 complains:
[39584.721375] rtw_pci 0000:03:00.0: failed to send h2c command

Increase interval of each check to wait the status bit really changed.

Use read_poll_timeout() macro which fits anything we need here.

Suggested-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200407073331.397-1-kai.heng.feng@canonical.com
drivers/net/wireless/realtek/rtw88/fw.c