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 Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux