Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save lategoodbye/1f6eb978690f42b1dc5eada0a1afc777 to your computer and use it in GitHub Desktop.
Save lategoodbye/1f6eb978690f42b1dc5eada0a1afc777 to your computer and use it in GitHub Desktop.
usb: add quirk for Microchip USB 2.0 hub
From 5d570120d9e78f87a74b8fc94310911dc6c65a25 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sun, 20 Oct 2024 22:01:18 +0200
Subject: [PATCH] usb: add quirk for Microchip USB 2.0 hub
The commit d483f034f032 ("usb: dwc2: Skip clock gating on Broadcom
SoCs") revealed an issue on Raspberry Pi 3 B Plus. In case there is
nothing connected to the board via USB during boot, the onboard
Ethernet Microchip LAN7800 doesn't get enumerated.
So the add the USB_QUIRK_RESET_RESUME for the connected Microchip
USB 2.0 hub to avoid this issue:
006: ID 0424:7800 Microchip Technology, Inc. (formerly SMSC)
005: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
002: ID 0424:2514 Microchip Technology, Inc. (formerly SMSC) USB 2.0 Hub
001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Fixes: d483f034f032 ("usb: dwc2: Skip clock gating on Broadcom SoCs")
Signed-off-by: Stefan Wahren <[email protected]>
---
drivers/usb/core/quirks.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c
index 13171454f959..eab024d32213 100644
--- a/drivers/usb/core/quirks.c
+++ b/drivers/usb/core/quirks.c
@@ -211,6 +211,9 @@ static const struct usb_device_id usb_quirk_list[] = {
/* Creative SB Audigy 2 NX */
{ USB_DEVICE(0x041e, 0x3020), .driver_info = USB_QUIRK_RESET_RESUME },
+ /* Microchip USB 2.0 Hub */
+ { USB_DEVICE(0x0424, 0x2514), .driver_info = USB_QUIRK_RESET_RESUME },
+
/* USB3503 */
{ USB_DEVICE(0x0424, 0x3503), .driver_info = USB_QUIRK_RESET_RESUME },
--
2.34.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment