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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
21c13a4f7b
commit
c5c69f3f0d
@@ -1906,6 +1906,7 @@ static int dummy_hcd_probe(struct platform_device *pdev)
|
|||||||
if (!hcd)
|
if (!hcd)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
the_controller = hcd_to_dummy (hcd);
|
the_controller = hcd_to_dummy (hcd);
|
||||||
|
hcd->has_tt = 1;
|
||||||
|
|
||||||
retval = usb_add_hcd(hcd, 0, 0);
|
retval = usb_add_hcd(hcd, 0, 0);
|
||||||
if (retval != 0) {
|
if (retval != 0) {
|
||||||
|
Reference in New Issue
Block a user