diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2019-01-17 16:24:15 +0900 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-01-28 12:51:29 +0200 |
commit | 1c1a3ddae9782ba748f5ceb775ed13ef554e8994 (patch) | |
tree | 541db954780f7e224dc1c728453199cda7a9c6db /drivers/usb/dwc3 | |
parent | usb: dwc3: qcom: Add support for MSM8998 (diff) | |
download | linux-dev-1c1a3ddae9782ba748f5ceb775ed13ef554e8994.tar.xz linux-dev-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