]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 09:00:49 +0000 (10:00 +0100)
commitbb09779f879371fcf0b8f07d932451966cd3b3f3
treed6c266a63449a9b00ab10fbc60444e4eea7fb7f9
parentfecb28291404786b921c3f116aedb17a04fa4884
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().

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/renesas_usbhs/rcar3.c
drivers/usb/renesas_usbhs/rza.c