Patch "usb: dwc2: host: use msleep() for long delay" has been added to the 4.10-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
usb: dwc2: host: use msleep() for long delay
to the 4.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
usb-dwc2-host-use-msleep-for-long-delay.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
d3fe81d2ccc41b355e494413115c0c7c18426fa1Mon Sep 17 00:00:00 2001
From: Nicholas Mc Guire <[email protected]>
Date: Mon, 23 Jan 2017 15:00:40 -0800
Subject: usb: dwc2: host: use msleep() for long delay
From: Nicholas Mc Guire <[email protected]>
commit d3fe81d2ccc41b355e494413115c0c7c18426fa1 upstream.
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.
--- drivers/usb/dwc2/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/dwc2/core.c +1 -1
@@ -455,7 +455,7 @@ void dwc2_clear_force_mode(struct dwc2_hdwc2_writel (gusbcfg, hsotg->regs +GUSBCFG );if (dwc2_iddig_filter_enabled (hsotg)) -usleep_range (100000 ,110000 ); +msleep (100 ); }/*
Patches currently in stable-queue which might be from [email protected] are
queue-4.10/usb-dwc2-host-use-msleep-for-long-delay.patch