[PATCH] staging: rtl8723bs: replace msleep with usleep_range in rtw_suspend_common

From: Gustavo Arantes

Date: Sun Mar 08 2026 - 18:20:04 EST


Replace msleep(1) with usleep_range(1000, 2000) in rtw_suspend_common(),
since msleep() for values less than 20ms may not sleep for the intended
duration as documented in Documentation/timers/timers-howto.rst.

Signed-off-by: Gustavo Arantes <dev.gustavoa@xxxxxxxxx>
---
drivers/staging/rtl8723bs/os_dep/os_intfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
index f2d64b05debb..47b1c791ec8c 100644
--- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
+++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
@@ -1091,7 +1091,7 @@ void rtw_suspend_common(struct adapter *padapter)
pwrpriv->bInSuspend = true;

while (pwrpriv->bips_processing)
- msleep(1);
+ usleep_range(1000, 2000);

if ((!padapter->bup) || (padapter->bDriverStopped) || (padapter->bSurpriseRemoved))
return;
--
2.53.0