diff options
author | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2010-09-13 15:01:02 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2011-03-13 21:07:12 -0400 |
commit | 22c6a35d41f71b5b40ba8debcb8bd4e8e291ae43 (patch) | |
tree | a2304ee6d8172da6ff059fd99d3cac840608129a /drivers/usb/core | |
parent | c70615740996823580bb8fb58461347b7ffaad9a (diff) |
usb: Make USB 3.0 roothub have a SS EP comp descriptor.
Make the USB 3.0 roothub registered by the USB core have a SuperSpeed
Endpoint Companion Descriptor after the interrupt endpoint. All USB 3.0
devices are required to have this, and the USB 3.0 bus specification
(section 10.13.1) says which values the descriptor should have.
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/hcd.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index a97ed6d293e9..93c0b92ae402 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c | |||
@@ -297,7 +297,7 @@ static const u8 ss_rh_config_descriptor[] = { | |||
297 | /* one configuration */ | 297 | /* one configuration */ |
298 | 0x09, /* __u8 bLength; */ | 298 | 0x09, /* __u8 bLength; */ |
299 | 0x02, /* __u8 bDescriptorType; Configuration */ | 299 | 0x02, /* __u8 bDescriptorType; Configuration */ |
300 | 0x19, 0x00, /* __le16 wTotalLength; FIXME */ | 300 | 0x1f, 0x00, /* __le16 wTotalLength; */ |
301 | 0x01, /* __u8 bNumInterfaces; (1) */ | 301 | 0x01, /* __u8 bNumInterfaces; (1) */ |
302 | 0x01, /* __u8 bConfigurationValue; */ | 302 | 0x01, /* __u8 bConfigurationValue; */ |
303 | 0x00, /* __u8 iConfiguration; */ | 303 | 0x00, /* __u8 iConfiguration; */ |
@@ -327,11 +327,14 @@ static const u8 ss_rh_config_descriptor[] = { | |||
327 | /* __le16 ep_wMaxPacketSize; 1 + (MAX_ROOT_PORTS / 8) | 327 | /* __le16 ep_wMaxPacketSize; 1 + (MAX_ROOT_PORTS / 8) |
328 | * see hub.c:hub_configure() for details. */ | 328 | * see hub.c:hub_configure() for details. */ |
329 | (USB_MAXCHILDREN + 1 + 7) / 8, 0x00, | 329 | (USB_MAXCHILDREN + 1 + 7) / 8, 0x00, |
330 | 0x0c /* __u8 ep_bInterval; (256ms -- usb 2.0 spec) */ | 330 | 0x0c, /* __u8 ep_bInterval; (256ms -- usb 2.0 spec) */ |
331 | /* | 331 | |
332 | * All 3.0 hubs should have an endpoint companion descriptor, | 332 | /* one SuperSpeed endpoint companion descriptor */ |
333 | * but we're ignoring that for now. FIXME? | 333 | 0x06, /* __u8 ss_bLength */ |
334 | */ | 334 | 0x30, /* __u8 ss_bDescriptorType; SuperSpeed EP Companion */ |
335 | 0x00, /* __u8 ss_bMaxBurst; allows 1 TX between ACKs */ | ||
336 | 0x00, /* __u8 ss_bmAttributes; 1 packet per service interval */ | ||
337 | 0x02, 0x00 /* __le16 ss_wBytesPerInterval; 15 bits for max 15 ports */ | ||
335 | }; | 338 | }; |
336 | 339 | ||
337 | /*-------------------------------------------------------------------------*/ | 340 | /*-------------------------------------------------------------------------*/ |