aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorHeikki Krogerus <[email protected]>2025-06-11 11:14:15 +0000
committerGreg Kroah-Hartman <[email protected]>2025-06-19 10:36:19 +0000
commit3b18405763c1ebb1efc15feef5563c9cdb2cc3a7 (patch)
tree07bf41767d9dc6ea05fa3f3a59412651b77a2da0 /drivers/usb/core/hub.c
parentusb: hub: fix detection of high tier USB3 devices behind suspended hubs (diff)
downloadkernel-3b18405763c1ebb1efc15feef5563c9cdb2cc3a7.tar.gz
kernel-3b18405763c1ebb1efc15feef5563c9cdb2cc3a7.zip
usb: acpi: fix device link removal
The device link to the USB4 host interface has to be removed manually since it's no longer auto removed. Fixes: 623dae3e7084 ("usb: acpi: fix boot hang due to early incorrect 'tunneled' USB3 device links") Cc: stable <[email protected]> Signed-off-by: Heikki Krogerus <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 5c12dfdef569..6bb6e92cb0a4 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2368,6 +2368,9 @@ void usb_disconnect(struct usb_device **pdev)
usb_remove_ep_devs(&udev->ep0);
usb_unlock_device(udev);
+ if (udev->usb4_link)
+ device_link_del(udev->usb4_link);
+
/* Unregister the device. The device driver is responsible
* for de-configuring the device and invoking the remove-device
* notifier chain (used by usbfs and possibly others).