[PATCH] USB: dummy-hcd needs the has_tt flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx>

---

Although strictly speaking this fixes a bug, it doesn't need to go into 
the stable kernels because we don't currently have any full-speed-only 
gadget drivers.



 drivers/usb/gadget/dummy_hcd.c |    1 +
 1 file changed, 1 insertion(+)

Index: usb-3.0/drivers/usb/gadget/dummy_hcd.c
===================================================================
--- usb-3.0.orig/drivers/usb/gadget/dummy_hcd.c
+++ usb-3.0/drivers/usb/gadget/dummy_hcd.c
@@ -1906,6 +1906,7 @@ static int dummy_hcd_probe(struct platfo
 	if (!hcd)
 		return -ENOMEM;
 	the_controller = hcd_to_dummy (hcd);
+	hcd->has_tt = 1;
 
 	retval = usb_add_hcd(hcd, 0, 0);
 	if (retval != 0) {

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux