rtlwifi: set proper udelay within rf_serial_read
authorPing-Ke Shih <pkshih@realtek.com>
Mon, 18 Nov 2019 03:14:55 +0000 (11:14 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 20 Nov 2019 07:41:30 +0000 (09:41 +0200)
commit4c8c0d8f709d16f418a5d1962b4eda86ff570151
tree538e6e6d69beb53aa467b82c532bfcc6063d1613
parent92541dd9dda5ab474751e24cdb4253eb290b8b33
rtlwifi: set proper udelay within rf_serial_read

Since read RF register is an indirect access that hardware needs time to
accomplish read action, but there's no ready bit, so delay is required to
guarantee the read value is correct. After investigating internal documents,
these delays are reduced as proper values.

Reported-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8723com/phy_common.c