public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Sun Jian <sun.jian.kdev@gmail.com>
Cc: linux-staging@lists.linux.dev,
	Thomas Gleixner <tglx@linutronix.de>,
	Ignacio Pena <ignacio.pena87@gmail.com>,
	Bryant Boatright <bryant.boatright@proton.me>,
	JJ Strnad <strnad.jj@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: avoid short msleep duration
Date: Sun, 28 Dec 2025 13:54:03 +0100	[thread overview]
Message-ID: <2025122822-rectangle-wisdom-f775@gregkh> (raw)
In-Reply-To: <20251228054902.9065-1-sun.jian.kdev@gmail.com>

On Sun, Dec 28, 2025 at 01:49:02PM +0800, Sun Jian wrote:
> msleep() is documented to sleep for at least the specified
> number of milliseconds, but small values may result in a
> longer delay due to scheduler granularity.
> 
> Replace msleep(10) with msleep(20) to match the effective
> sleep duration and silence checkpatch warning.
> 
> No functional change intended.
> 
> Signed-off-by: Sun Jian <sun.jian.kdev@gmail.com>
> ---
>  drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
> index ef2d92b5588a..0edf9ecc4bed 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
> @@ -215,7 +215,7 @@ void _rtw_free_evt_priv(struct	evt_priv *pevtpriv)
>  {
>  	_cancel_workitem_sync(&pevtpriv->c2h_wk);
>  	while (pevtpriv->c2h_wk_alive)
> -		msleep(10);
> +		msleep(20);

That is very arbritrary, are you sure this is ok?  Why 20?

Just doing this for checkpatch without being able to test and know it
works properly on real hardware is not a good idea.

thanks,

greg k-h

      reply	other threads:[~2025-12-28 12:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-28  5:49 [PATCH] staging: rtl8723bs: avoid short msleep duration Sun Jian
2025-12-28 12:54 ` 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=2025122822-rectangle-wisdom-f775@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=bryant.boatright@proton.me \
    --cc=ignacio.pena87@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=strnad.jj@gmail.com \
    --cc=sun.jian.kdev@gmail.com \
    --cc=tglx@linutronix.de \
    /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