]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:22 +0000 (12:46 -0400)
commit cee6a262550f53a13acfefbc1e3e5ff35c96182c upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/staging/usbip/vhci_hcd.c

index 31317ffd11d3cbe8077f459944c1e9a97aefbf01..8d78c87942587e8d2b18ce3f96d27fba3e60dfab 100644 (file)
@@ -1097,7 +1097,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);