summaryrefslogtreecommitdiff
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2025-06-11 14:14:15 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 12:36:19 +0200
commit3b18405763c1ebb1efc15feef5563c9cdb2cc3a7 (patch)
tree07bf41767d9dc6ea05fa3f3a59412651b77a2da0 /drivers/usb/core/hub.c
parent8f5b7e2bec1c36578fdaa74a6951833541103e27 (diff)
downloadlinux-next-3b18405763c1ebb1efc15feef5563c9cdb2cc3a7.tar.gz
linux-next-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 <stable@kernel.org> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Link: https://lore.kernel.org/r/20250611111415.2707865-1-heikki.krogerus@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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).