• Y
    rtw88: use shorter delay time to poll PS state · 6b6c150b
    Yan-Hsuan Chuang 提交于
    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: NYan-Hsuan Chuang <yhchuang@realtek.com>
    Reviewed-by: NChris Chiu <chiu@endlessm.com>
    Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
    6b6c150b
ps.c 5.8 KB