]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: host: use msleep() for long delay
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 23 Jan 2017 23:00:40 +0000 (15:00 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 14:19:10 +0000 (16:19 +0200)
commite9ff569a4cc03f6a62b8b14ef006405517d36ff6
tree642117d477dd80f4c7b6fb906cf4cfd2744c4c0b
parent972457cf533c8ea5e86984327af2c4cbae777a7e
usb: dwc2: host: use msleep() for long delay

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

Link: http://lkml.org/lkml/2017/1/11/377
Fixes: commit a4f96642e633 ("usb: dwc2: Properly account for the force mode delays")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.c