mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Luka Miletic <mileticluka2001@gmail.com>
Cc: Dang Vu Duc Hien <dvdh12707@gmail.com>,
	"open list:STAGING SUBSYSTEM" <linux-staging@lists.linux.dev>,
	open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging: rtl8723bs: use usleep_range() instead of msleep()
Date: Tue, 1 Sep 2026 11:48:39 +0200	[thread overview]
Message-ID: <2026090124-bunny-bronzing-15d4@gregkh> (raw)
In-Reply-To: <20260822205427.74562-1-mileticluka2001@gmail.com>

On Sat, Aug 22, 2026 at 11:54:26PM +0300, Luka Miletic wrote:
> Use usleep_range() instead of msleep() to fix checkpatch warnings.
> Verified both loops exit on their own condition, independent of
> sleep duration, so this only changes timing precision, not behavior.
> 
> Signed-off-by: Luka Miletic <mileticluka2001@gmail.com>
> ---
>  drivers/staging/rtl8723bs/os_dep/os_intfs.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
> index c15056ee2..8b793680f 100644
> --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c
> +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c
> @@ -986,7 +986,7 @@ void rtw_dev_unload(struct adapter *padapter)
>  			if (cnt > 5)
>  				break;
>  			cnt++;
> -			msleep(10);
> +			usleep_range(10000, 20000);

Please see the mailing list archives for why we can't take this change.

sorry,

greg k-h

      reply	other threads:[~2026-09-01  9:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-22 20:54 Luka Miletic
2026-09-01  9:48 ` Greg Kroah-Hartman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2026090124-bunny-bronzing-15d4@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=dvdh12707@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=mileticluka2001@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®