From: Max Vozeler Date: Tue, 21 Sep 2010 15:31:40 +0000 (+0200) Subject: staging: usbip: Notify usb core of port status changes X-Git-Tag: firefly_0821_release~10186^2~793 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7f04bf4d3c8bfdfb7dff3db98af6ab7272b516fc;p=firefly-linux-kernel-4.4.55.git staging: usbip: Notify usb core of port status changes commit 0c9a32f0192e656daa2ff3c9149f6d71b4a1b873 upstream. 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 Reported-by: Marco Lancione Tested-by: Luc Jalbert Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index 6e91fc2bd850..c2018029059c 100644 --- a/drivers/staging/usbip/vhci_hcd.c +++ b/drivers/staging/usbip/vhci_hcd.c @@ -163,6 +163,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)); }