diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2011-06-07 11:33:01 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-06-07 12:05:43 -0400 |
commit | c5c69f3f0dcf9b569c8f3ad67f3af92cfcedac43 (patch) | |
tree | d6eb579b863518df3886bdfeb05a9ca17f7746a3 /drivers | |
parent | 21c13a4f7bc185552c4b402b792c3bbb9aa69df0 (diff) |
USB: dummy-hcd needs the has_tt flag
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/dummy_hcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index 61ff927928ab..d3dcabc1a5fc 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c | |||
@@ -1906,6 +1906,7 @@ static int dummy_hcd_probe(struct platform_device *pdev) | |||
1906 | if (!hcd) | 1906 | if (!hcd) |
1907 | return -ENOMEM; | 1907 | return -ENOMEM; |
1908 | the_controller = hcd_to_dummy (hcd); | 1908 | the_controller = hcd_to_dummy (hcd); |
1909 | hcd->has_tt = 1; | ||
1909 | 1910 | ||
1910 | retval = usb_add_hcd(hcd, 0, 0); | 1911 | retval = usb_add_hcd(hcd, 0, 0); |
1911 | if (retval != 0) { | 1912 | if (retval != 0) { |