staging: usbip: Notify usb core of port status changes
authorMax Vozeler <mvz@vozeler.com>
Tue, 21 Sep 2010 15:31:40 +0000 (17:31 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 21 Sep 2010 18:00:21 +0000 (11:00 -0700)
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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/vhci_hcd.c

index 0574d848b9000045c48b6b618b80a5e34b888205..832608d3e579c5e750ada04ac6f26f1fbb694305 100644 (file)
@@ -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));
 }