staging: r8188eu: simplify delay conditions in rtw_pwr_wakeup
Simplify the conditions for a loop in rtw_pwr_wakeup that waits while the system is suspended. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220413193654.258507-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a848981be6
commit
c5c3e3464e
|
@ -388,12 +388,8 @@ int rtw_pwr_wakeup(struct adapter *padapter)
|
|||
}
|
||||
|
||||
/* System suspend is not allowed to wakeup */
|
||||
if (pwrpriv->bInSuspend) {
|
||||
while (pwrpriv->bInSuspend &&
|
||||
(rtw_get_passing_time_ms(start) <= 3000 ||
|
||||
(rtw_get_passing_time_ms(start) <= 500)))
|
||||
msleep(10);
|
||||
}
|
||||
while (pwrpriv->bInSuspend && rtw_get_passing_time_ms(start) <= 3000)
|
||||
msleep(10);
|
||||
|
||||
/* I think this should be check in IPS, LPS, autosuspend functions... */
|
||||
if (check_fwstate(pmlmepriv, _FW_LINKED)) {
|
||||
|
|
Loading…
Reference in New Issue