summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Fleytman <dmitry@daynix.com>2017-09-05 11:40:56 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-12 09:18:01 +0200
commit8c7124a5295a10043daf2154bc01a437ece9d0f9 (patch)
tree542d5106f6208249700b70f43869ce290c870be0
parent8f0a7703ff9e3a5553134c3d9a20573624802541 (diff)
downloadlinux-stable-8c7124a5295a10043daf2154bc01a437ece9d0f9.tar.gz
linux-stable-8c7124a5295a10043daf2154bc01a437ece9d0f9.tar.bz2
linux-stable-8c7124a5295a10043daf2154bc01a437ece9d0f9.zip
usb: Increase quirk delay for USB devices
commit b2a542bbb3081dbd64acc8929c140d196664c406 upstream. Commit e0429362ab15 ("usb: Add device quirk for Logitech HD Pro Webcams C920 and C930e") introduced quirk to workaround an issue with some Logitech webcams. The workaround is introducing delay for some USB operations. According to our testing, delay introduced by original commit is not long enough and in rare cases we still see issues described by the aforementioned commit. This patch increases delays introduced by original commit. Having this patch applied we do not see those problems anymore. Signed-off-by: Dmitry Fleytman <dmitry@daynix.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/core/config.c2
-rw-r--r--drivers/usb/core/hub.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/config.c b/drivers/usb/core/config.c
index 65e2cec1ca2a..69dfaea4dede 100644
--- a/drivers/usb/core/config.c
+++ b/drivers/usb/core/config.c
@@ -747,7 +747,7 @@ int usb_get_configuration(struct usb_device *dev)
}
if (dev->quirks & USB_QUIRK_DELAY_INIT)
- msleep(100);
+ msleep(200);
result = usb_get_descriptor(dev, USB_DT_CONFIG, cfgno,
bigbuffer, length);
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 32d904ea494c..5ff2e776bc5c 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -4719,7 +4719,7 @@ static void hub_port_connect(struct usb_hub *hub, int port1, u16 portstatus,
goto loop;
if (udev->quirks & USB_QUIRK_DELAY_INIT)
- msleep(1000);
+ msleep(2000);
/* consecutive bus-powered hubs aren't reliable; they can
* violate the voltage drop budget. if the new child has