2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 14:43:58 +08:00
linux-next/drivers/usb/renesas_usbhs
Yoshihiro Shimoda bb09779f87 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>
2019-01-18 10:00:49 +01:00
..
common.c usb: renesas_usbhs: add support for RZ/G2E 2018-12-17 14:07:59 +01:00
common.h Revert "usb: renesas_usbhs: add extcon notifier to set mode for non-otg channel" 2018-09-28 15:11:08 +02:00
fifo.c usb: renesas_usbhs: missed the "running" flag in usb_dmac with rx path 2018-02-15 18:43:57 +01:00
fifo.h USB: renesas_usbhs: Remove redundant license text 2017-11-07 15:45:01 +01:00
Kconfig usb: renesas_usbhs: Kconfig: convert to SPDX identifiers 2018-07-30 15:27:14 +02:00
Makefile usb: renesas_usbhs: Add support for RZ/A1 2018-01-09 16:18:50 +01:00
mod_gadget.c USB: mark expected switch fall-throughs 2018-07-02 18:08:19 +02:00
mod_host.c USB: renesas_usbhs: Remove redundant license text 2017-11-07 15:45:01 +01:00
mod.c USB: renesas_usbhs: Remove redundant license text 2017-11-07 15:45:01 +01:00
mod.h USB: renesas_usbhs: Remove redundant license text 2017-11-07 15:45:01 +01:00
pipe.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
pipe.h usb: renesas_usbhs: add usbhs_pipe_clear_without_sequence() function 2017-12-12 13:04:09 +02:00
rcar2.c USB: renesas_usbhs: drop unused legacy-phy support 2018-04-22 15:58:24 +02:00
rcar2.h USB: renesas_usbhs: rcar?.h: add SPDX tags 2017-11-07 15:53:48 +01:00
rcar3.c usb: renesas_usbhs: replace udelay() with usleep_range() 2019-01-18 10:00:49 +01:00
rcar3.h USB: renesas_usbhs: rcar?.h: add SPDX tags 2017-11-07 15:53:48 +01:00
rza.c usb: renesas_usbhs: replace udelay() with usleep_range() 2019-01-18 10:00:49 +01:00
rza.h usb: renesas_usbhs: Add support for RZ/A1 2018-01-09 16:18:50 +01:00