lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Sun, 14 Apr 2019 15:15:06 +0100
From:   Jonathan Cameron <jic23@...nel.org>
To:     Mohan Kumar <mohankumar718@...il.com>
Cc:     linus.walleij@...aro.org, knaack.h@....de,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drivers/iio/gyro/mpu3050-core.c: This patch fix the
 following checkpatch warning.

On Fri, 12 Apr 2019 13:09:23 +0300
Mohan Kumar <mohankumar718@...il.com> wrote:

> As per Documentation/timers/timers-howto.txt Msleep < 20ms can sleep for
> up to 20ms. so use usleep_range.
> 
> Signed-off-by: Mohan Kumar <mohankumar718@...il.com>

Please resend, ccing the linux-iio@...r.kernel.org mailing list.

Thanks,

Jonathan
> ---
>  drivers/iio/gyro/mpu3050-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/gyro/mpu3050-core.c b/drivers/iio/gyro/mpu3050-core.c
> index 85b7ac4..0a40616 100644
> --- a/drivers/iio/gyro/mpu3050-core.c
> +++ b/drivers/iio/gyro/mpu3050-core.c
> @@ -865,7 +865,7 @@ static int mpu3050_power_up(struct mpu3050 *mpu3050)
>  		dev_err(mpu3050->dev, "error setting power mode\n");
>  		return ret;
>  	}
> -	msleep(10);
> +	usleep_range(10000, 20000);
>  
>  	return 0;
>  }

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ