usb: dwc2: host: use msleep() for long delays
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 12 Jan 2017 15:54:03 +0000 (16:54 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:10 +0000 (11:04 +0200)
commit04a9db799253e0993ebb46b4096f7514c62193f7
treeff12afcdf11373a3f5a5876c0eb76d823da66246
parent0e4018ff5d12866a134dbdd0204d1b2629f71e31
usb: dwc2: host: use msleep() for long delays

ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. Fix up the 20+ ms delays here passing the adjusted "min"
value to msleep(). This helps reduce the load on the hrtimer subsystem.

Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/hcd.c