This enables the multi-TT altsetting in hubs like the new Cypress ones. That's a prerequisite for supporting lots of full speed ISO traffic.
Please merge!
- Dave
[USB] hub driver turns on multi-TT mode
This turns on the multi-tt mode in hubs that support it; the Cypress
"TetraHub" products are appearing at retail now, complete with some
of the first Mini-B connectors I've seen shipping.
This will be important for hooking up lots of full speed isochronous
devices (audio, video, etc).
--- 1.86/drivers/usb/core/hub.c Tue Dec 30 03:34:27 2003
+++ edited/drivers/usb/core/hub.c Wed Feb 18 11:00:29 2004
@@ -405,9 +405,14 @@
hub->tt.hub = dev;
break;
case 2:
- dev_dbg(hub_dev, "TT per port\n");
+ ret = usb_set_interface(dev, 0, 1);
+ if (ret == 0) {
+ dev_dbg(hub_dev, "TT per port\n");
+ hub->tt.multi = 1;
+ } else
+ dev_err(hub_dev, "Using single TT (err %d)\n",
+ ret);
hub->tt.hub = dev;
- hub->tt.multi = 1;
break;
default:
dev_dbg(hub_dev, "Unrecognized hub protocol %d\n",
