Re: [PATCH] usb: renesas_usbhs: replace udelay() with usleep_range()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 17, 2019 at 04:24:15PM +0900, Yoshihiro Shimoda wrote:
> According to Documentation/timers/timers-howto.txt, a driver should
> use usleep_range() instead of udelay() on NON-ATOMIC CONTEXT if
> "SLEEPING FOR ~USECS OR SMALL MSECS ( 10us - 20ms)".
> 
> Since the .hardware_init() and .power_ctrl() will run on NON-ATOMIC
> CONTEXT, this patch replaces udelay() with usleep_range().
> 
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@xxxxxxxxxxx>

Reviewed-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux