USB: fix regression in usbip by setting has_tt flag
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 2 May 2011 18:21:44 +0000 (14:21 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 3 May 2011 00:07:50 +0000 (17:07 -0700)
This patch (as1460) fixes a regression in the usbip driver caused by
the new check for Transaction Translators in USB-2 hubs.  The root hub
registered by vhci_hcd needs to have the has_tt flag set, because it
can connect to low- and full-speed devices as well as high-speed
devices.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
CC: <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/vhci_hcd.c

index 0f02a4b12ae4a29b05b68710d178686251acd713..5d0caa8648e273bc508e2040780f88f8a107e02e 100644 (file)
@@ -1139,7 +1139,7 @@ static int vhci_hcd_probe(struct platform_device *pdev)
                usbip_uerr("create hcd failed\n");
                return -ENOMEM;
        }
-
+       hcd->has_tt = 1;
 
        /* this is private data for vhci_hcd */
        the_controller = hcd_to_vhci(hcd);