]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: dummy-hcd needs the has_tt flag
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 7 Jun 2011 15:33:01 +0000 (11:33 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:22 +0000 (12:46 -0400)
commit c5c69f3f0dcf9b569c8f3ad67f3af92cfcedac43 upstream.

Like with other host controllers capable of operating at both high
speed and full speed, we need to indicate that the emulated controller
presented by dummy-hcd has this ability.  Otherwise usbcore will not
accept full-speed gadgets under dummy-hcd.  This patch (as1469) sets
the appropriate has_tt flag.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/usb/gadget/dummy_hcd.c

index 5e0966485188910b8716477c8422aebcdc03afef..7adb671cc203bcd09b9323d18b18ec3895d94bb5 100644 (file)
@@ -1886,6 +1886,7 @@ static int dummy_hcd_probe(struct platform_device *pdev)
        if (!hcd)
                return -ENOMEM;
        the_controller = hcd_to_dummy (hcd);
+       hcd->has_tt = 1;
 
        retval = usb_add_hcd(hcd, 0, 0);
        if (retval != 0) {