Re: [PATCH] staging: rtl8723bs: replace msleep with usleep_range in rtw_dev_unload

From: Bryant Boatright

Date: Mon Mar 09 2026 - 09:38:13 EST


On Sun, Mar 08, 2026 at 06:56:19PM -0300, Gustavo Arantes wrote:
> Replace msleep(10) with usleep_range(10000, 20000) in the command thread
> shutdown loop in rtw_dev_unload(), since msleep() for values less than
> 20ms may not in fact sleep for the intended duration and will often
> sleep for up to 20ms, as documented in
> Documentation/timers/timers-howto.rst.
>

This has been addressed in a thread recently and Gred said to drop the patch [1].

Best,

Bryant Boatright

[1] https://lore.kernel.org/linux-staging/20260214173139.49094-1-ofekalm100@xxxxxxxxx/