usb: renesas_usbhs: replace udelay() with usleep_range()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 17 Jan 2019 07:24:15 +0000 (16:24 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 28 Jan 2019 10:51:29 +0000 (12:51 +0200)
commit1c1a3ddae9782ba748f5ceb775ed13ef554e8994
tree541db954780f7e224dc1c728453199cda7a9c6db
parent54c9da1bcec44d234a2c6f55c2935d0980a50286
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>
drivers/usb/renesas_usbhs/rcar3.c
drivers/usb/renesas_usbhs/rza.c