Skip to content

Commit 576996b

Browse files
lunngregkh
authored andcommitted
usb: core: hub: Disable autosuspend for Cypress CY7C65632
commit a7d8d1c upstream. The Cypress CY7C65632 appears to have an issue with auto suspend and detecting devices, not too dissimilar to the SMSC 5534B hub. It is easiest to reproduce by connecting multiple mass storage devices to the hub at the same time. On a Lenovo Yoga, around 1 in 3 attempts result in the devices not being detected. It is however possible to make them appear using lsusb -v. Disabling autosuspend for this hub resolves the issue. Fixes: 1208f9e ("USB: hub: Fix the broken detection of USB3 device in SMSC hub") Cc: stable@vger.kernel.org Signed-off-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20210614155524.2228800-1-andrew@lunn.ch Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 6bd3d80 commit 576996b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/usb/core/hub.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
#define USB_VENDOR_GENESYS_LOGIC 0x05e3
4141
#define USB_VENDOR_SMSC 0x0424
4242
#define USB_PRODUCT_USB5534B 0x5534
43+
#define USB_VENDOR_CYPRESS 0x04b4
44+
#define USB_PRODUCT_CY7C65632 0x6570
4345
#define HUB_QUIRK_CHECK_PORT_AUTOSUSPEND 0x01
4446
#define HUB_QUIRK_DISABLE_AUTOSUSPEND 0x02
4547

@@ -5643,6 +5645,11 @@ static const struct usb_device_id hub_id_table[] = {
56435645
.idProduct = USB_PRODUCT_USB5534B,
56445646
.bInterfaceClass = USB_CLASS_HUB,
56455647
.driver_info = HUB_QUIRK_DISABLE_AUTOSUSPEND},
5648+
{ .match_flags = USB_DEVICE_ID_MATCH_VENDOR
5649+
| USB_DEVICE_ID_MATCH_PRODUCT,
5650+
.idVendor = USB_VENDOR_CYPRESS,
5651+
.idProduct = USB_PRODUCT_CY7C65632,
5652+
.driver_info = HUB_QUIRK_DISABLE_AUTOSUSPEND},
56465653
{ .match_flags = USB_DEVICE_ID_MATCH_VENDOR
56475654
| USB_DEVICE_ID_MATCH_INT_CLASS,
56485655
.idVendor = USB_VENDOR_GENESYS_LOGIC,

0 commit comments

Comments
 (0)