]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: xhci: Avoid showing errors during surprise removal
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 17 Jul 2025 07:31:05 +0000 (10:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 08:53:04 +0000 (10:53 +0200)
commit4b9c60e440525b729ac5f071e00bcee12e0a7e84
tree41d720496bcb7eed61ed86fad8e1ad2cc7638168
parent300386d117a98961fc1d612d1f1a61997d731b8a
usb: xhci: Avoid showing errors during surprise removal

When a USB4 dock is unplugged from a system it won't respond to ring
events. The PCI core handles the surprise removal event and notifies
all PCI drivers. The XHCI PCI driver sets a flag that the device is
being removed as well.

When that flag is set don't show messages in the cleanup path for
marking the controller dead.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250717073107.488599-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c