summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMax Vozeler <mvz@vozeler.com>2010-09-21 17:31:40 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2010-11-22 10:59:41 -0800
commit12b1e06af306d6190cc7e8cccc8a328014e7c487 (patch)
treec44c416f6840fde2fb6bc60750abfd5bbd580d46 /drivers
parentf16e6e4df8ec41328d7e0841bc17f2a587eb2c67 (diff)
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 <mvz@vozeler.com> Reported-by: Marco Lancione <marco@optikam.com> Tested-by: Luc Jalbert <ljalbert@optikam.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/usbip/vhci_hcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c
index be5d8db9816..b6c871c6d5c 100644
--- a/drivers/staging/usbip/vhci_hcd.c
+++ b/drivers/staging/usbip/vhci_hcd.c
@@ -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));
}