patch "xhci: xhci debugfs device nodes weren't removed after device plugged" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
xhci: xhci debugfs device nodes weren't removed after device plugged
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
8c5a93ebf7ac56d47f879b3c7c2f8c83b40c2cdbMon Sep 17 00:00:00 2001
From: Zhengjun Xing <[email protected]>
Date: Mon, 12 Feb 2018 14:24:50 +0200
Subject: xhci: xhci debugfs device nodes weren't removed after device plugged
out
There is a bug after plugged out USB device, the device and its ep00 nodes are still kept, we need to remove the nodes in xhci_free_dev when USB device is plugged out.
--- drivers/usb/host/xhci.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/usb/host/xhci.c +2 -4
@@ -3545,12 +3545,10 @@ static void xhci_free_dev(struct usb_hcd *hcd, struct usb_device *udev) virt_dev->eps[i].ep_state &= ~EP_STOP_CMD_PENDING ;del_timer_sync (&virt_dev->eps[i].stop_cmd_timer); } - +xhci_debugfs_remove_slot (xhci, udev->slot_id); ret =xhci_disable_slot (xhci, udev->slot_id); -if (ret) { -xhci_debugfs_remove_slot (xhci, udev->slot_id); +if (ret)xhci_free_virt_device (xhci, udev->slot_id); - } }int xhci_disable_slot (struct xhci_hcd *xhci,u32 slot_id)
Signature · 1 line
2.16.1