linux_dsm_epyc7002/drivers/net/wireless/realtek
Yan-Hsuan Chuang 6b6c150b84 rtw88: use shorter delay time to poll PS state
When TX packet arrives, driver should leave deep PS state to make
sure the DMA is working. After requested to leave deep PS state,
driver needs to poll the PS state to check if the mode has been
changed successfully. The driver used to check the state of the
hardware every 20 msecs, which means upon the first failure of
state check, the CPU is delayed 20 msecs for next check. This is
harmful for some time-sensitive applications such as media players.

So, use shorter delay time each check from 20 msecs to 100 usecs.
The state should be changed in several tries. But we still need
to reserve ~15 msecs in total in case of the state just took too
long to be changed successfully. If the states of driver and the
hardware is not synchronized, the power state could be locked
forever, which mean we could never enter/leave the PS state.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Reviewed-by: Chris Chiu <chiu@endlessm.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2020-01-26 17:42:56 +02:00
..
rtl8xxxu rtl8xxxu: fix interface sanity check 2019-12-18 21:06:05 +02:00
rtl818x rtlwifi: rtl8225se: remove some unused const variables 2019-11-06 19:56:32 +02:00
rtlwifi rtlwifi: rtl8821ae: Make functions static & rm sw.h 2020-01-26 17:39:45 +02:00
rtw88 rtw88: use shorter delay time to poll PS state 2020-01-26 17:42:56 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00