]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.35.9/staging-usbip-notify-usb-core-of-port-status-changes.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.35.9 / staging-usbip-notify-usb-core-of-port-status-changes.patch
1 From 0c9a32f0192e656daa2ff3c9149f6d71b4a1b873 Mon Sep 17 00:00:00 2001
2 From: Max Vozeler <mvz@vozeler.com>
3 Date: Tue, 21 Sep 2010 17:31:40 +0200
4 Subject: staging: usbip: Notify usb core of port status changes
5
6 From: Max Vozeler <mvz@vozeler.com>
7
8 commit 0c9a32f0192e656daa2ff3c9149f6d71b4a1b873 upstream.
9
10 This patch changes vhci to behave like dummy and
11 other hcds when disconnecting a device.
12
13 Previously detaching a device from the root hub
14 did not notify the usb core of the disconnect and
15 left the device visible.
16
17 Signed-off-by: Max Vozeler <mvz@vozeler.com>
18 Reported-by: Marco Lancione <marco@optikam.com>
19 Tested-by: Luc Jalbert <ljalbert@optikam.com>
20 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
21
22 ---
23 drivers/staging/usbip/vhci_hcd.c | 2 ++
24 1 file changed, 2 insertions(+)
25
26 --- a/drivers/staging/usbip/vhci_hcd.c
27 +++ b/drivers/staging/usbip/vhci_hcd.c
28 @@ -164,6 +164,8 @@ void rh_port_disconnect(int rhport)
29 * spin_unlock(&vdev->ud.lock); */
30
31 spin_unlock_irqrestore(&the_controller->lock, flags);
32 +
33 + usb_hcd_poll_rh_status(vhci_to_hcd(the_controller));
34 }
35
36