Linux kernel staging patches
 help / color / mirror / Atom feed
* [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range().
@ 2024-10-16 11:12 Aymen Khalfa
  2024-10-16 11:13 ` Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Aymen Khalfa @ 2024-10-16 11:12 UTC (permalink / raw)
  To: gregkh, hdegoede, Larry.Finger; +Cc: linux-staging, Aymen Khalfa

-Fix checkpatch.pl warning by replacing msleep() with usleep_range() as
recommended in the documentation.

Signed-off-by: Aymen Khalfa <a.khalfa.1012@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
index dbfcbac3d855..26e125f556e9 100644
--- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
@@ -429,7 +429,7 @@ s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms)
 			err = -1;
 			break;
 		}
-		msleep(1);
+		usleep_range(1000, 2000);
 	}
 
 	return err;
@@ -591,7 +591,7 @@ void LPS_Leave_check(struct adapter *padapter)
 		if (jiffies_to_msecs(jiffies - start_time) > 100)
 			break;
 
-		msleep(1);
+		usleep_range(1000, 2000);
 	}
 }
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range().
  2024-10-16 11:12 [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range() Aymen Khalfa
@ 2024-10-16 11:13 ` Hans de Goede
  2024-10-16 12:29 ` Greg KH
  2024-10-16 12:30 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2024-10-16 11:13 UTC (permalink / raw)
  To: Aymen Khalfa, gregkh, Larry.Finger; +Cc: linux-staging

Hi,

On 16-Oct-24 1:12 PM, Aymen Khalfa wrote:
> -Fix checkpatch.pl warning by replacing msleep() with usleep_range() as
> recommended in the documentation.
> 
> Signed-off-by: Aymen Khalfa <a.khalfa.1012@gmail.com>

Thanks, patch looks good to me:

Reviewed-by: Hans de Goede <hdegoede@redhat.com>

Regards,

Hans



> ---
>  drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
> index dbfcbac3d855..26e125f556e9 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
> @@ -429,7 +429,7 @@ s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms)
>  			err = -1;
>  			break;
>  		}
> -		msleep(1);
> +		usleep_range(1000, 2000);
>  	}
>  
>  	return err;
> @@ -591,7 +591,7 @@ void LPS_Leave_check(struct adapter *padapter)
>  		if (jiffies_to_msecs(jiffies - start_time) > 100)
>  			break;
>  
> -		msleep(1);
> +		usleep_range(1000, 2000);
>  	}
>  }
>  


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range().
  2024-10-16 11:12 [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range() Aymen Khalfa
  2024-10-16 11:13 ` Hans de Goede
@ 2024-10-16 12:29 ` Greg KH
  2024-10-16 12:30 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2024-10-16 12:29 UTC (permalink / raw)
  To: Aymen Khalfa; +Cc: hdegoede, Larry.Finger, linux-staging

On Wed, Oct 16, 2024 at 01:12:10PM +0200, Aymen Khalfa wrote:
> -Fix checkpatch.pl warning by replacing msleep() with usleep_range() as
> recommended in the documentation.
> 
> Signed-off-by: Aymen Khalfa <a.khalfa.1012@gmail.com>
> ---
>  drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
> index dbfcbac3d855..26e125f556e9 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
> @@ -429,7 +429,7 @@ s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms)
>  			err = -1;
>  			break;
>  		}
> -		msleep(1);
> +		usleep_range(1000, 2000);
>  	}
>  
>  	return err;
> @@ -591,7 +591,7 @@ void LPS_Leave_check(struct adapter *padapter)
>  		if (jiffies_to_msecs(jiffies - start_time) > 100)
>  			break;
>  
> -		msleep(1);
> +		usleep_range(1000, 2000);
>  	}
>  }
>  
> -- 
> 2.34.1
> 
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- You sent a patch that has been sent multiple times in the past, and is
  identical to ones that have been rejected.  Please always look at the
  mailing list traffic to determine if you are duplicating other
  people's work.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range().
  2024-10-16 11:12 [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range() Aymen Khalfa
  2024-10-16 11:13 ` Hans de Goede
  2024-10-16 12:29 ` Greg KH
@ 2024-10-16 12:30 ` Greg KH
  2 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2024-10-16 12:30 UTC (permalink / raw)
  To: Aymen Khalfa; +Cc: hdegoede, Larry.Finger, linux-staging

On Wed, Oct 16, 2024 at 01:12:10PM +0200, Aymen Khalfa wrote:
> -Fix checkpatch.pl warning by replacing msleep() with usleep_range() as
> recommended in the documentation.

Here's a link fixing checkpatch to not give bad advice like this:
	https://lore.kernel.org/r/20241014-devel-anna-maria-b4-timers-flseep-v3-16-dc8b907cb62f@linutronix.de
so that will be changed soon so that people don't keep trying to "fix
up" this driver that is not broken...

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-16 12:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-16 11:12 [PATCH] drivers: staging: rtl8723bs: Replace msleep() with usleep_range() Aymen Khalfa
2024-10-16 11:13 ` Hans de Goede
2024-10-16 12:29 ` Greg KH
2024-10-16 12:30 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox