staging: usbip: Notify usb core of port status changes
PATCH 1/1 staging: usbip: Notify usb core of port status changes
This patch changes vhci to behave like dummy and other hcds when disconnecting a device.
Previously detaching a device from the root hub did not notify the usb core of the disconnect and left the device visible.
Signed-off-by Max Vozeler <[email protected]>
Reported-by Marco Lancione <[email protected]>
Tested-by Luc Jalbert <[email protected]>
--- drivers/staging/usbip/vhci_hcd.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/staging/usbip/vhci_hcd.c +2 -0
@@ -164,6 +164,8 @@ void rh_port_disconnect(int rhport)* spin_unlock(&vdev->ud.lock); */ spin_unlock_irqrestore (&the_controller->lock, flags); + +usb_hcd_poll_rh_status (vhci_to_hcd (the_controller)); }
Signature · 1 line
1.7.1