Skip to content

Commit ddcbaf8

Browse files
Dmitry Fleytmangregkh
authored andcommitted
usb: Increase quirk delay for USB devices
commit b2a542bbb3081dbd64acc8929c140d196664c406 upstream. Commit e042936 ("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>
1 parent feab51a commit ddcbaf8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/usb/core/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ int usb_get_configuration(struct usb_device *dev)
818818
}
819819

820820
if (dev->quirks & USB_QUIRK_DELAY_INIT)
821-
msleep(100);
821+
msleep(200);
822822

823823
result = usb_get_descriptor(dev, USB_DT_CONFIG, cfgno,
824824
bigbuffer, length);

drivers/usb/core/hub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4761,7 +4761,7 @@ static void hub_port_connect(struct usb_hub *hub, int port1, u16 portstatus,
47614761
goto loop;
47624762

47634763
if (udev->quirks & USB_QUIRK_DELAY_INIT)
4764-
msleep(1000);
4764+
msleep(2000);
47654765

47664766
/* consecutive bus-powered hubs aren't reliable; they can
47674767
* violate the voltage drop budget. if the new child has

0 commit comments

Comments
 (0)