summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2019-01-17 16:24:15 +0900
committerFelipe Balbi <felipe.balbi@linux.intel.com>2019-01-28 12:51:29 +0200
commit1c1a3ddae9782ba748f5ceb775ed13ef554e8994 (patch)
tree541db954780f7e224dc1c728453199cda7a9c6db /drivers/usb/dwc3
parent54c9da1bcec44d234a2c6f55c2935d0980a50286 (diff)
downloadlinux-1c1a3ddae9782ba748f5ceb775ed13ef554e8994.tar.gz
linux-1c1a3ddae9782ba748f5ceb775ed13ef554e8994.tar.bz2
linux-1c1a3ddae9782ba748f5ceb775ed13ef554e8994.zip
usb: renesas_usbhs: replace udelay() with usleep_range()
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(). Reviewed-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3')
0 files changed, 0 insertions, 0 deletions