Sarah Sharp d30b2a2081 xhci: Limit roothub ports to 15 USB3 & 31 USB2 ports.
The USB core allocates a USB 2.0 roothub descriptor that has room for 31
(USB_MAXCHILDREN) ports' worth of DeviceRemovable and PortPwrCtrlMask
fields.  Limit the number of USB 2.0 roothub ports accordingly.  I don't
expect to run into this limitation ever, but this prevents a buffer
overflow issue in the roothub descriptor filling code.

Similarly, a USB 3.0 hub can only have 15 downstream ports, so limit the
USB 3.0 roothub to 15 USB 3.0 ports.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
2011-03-13 18:23:42 -07:00
..
2010-12-10 14:18:35 -08:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-07 12:15:21 -08:00
2010-11-01 17:01:27 -04:00
2010-08-10 14:35:44 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:07:11 -07:00
2011-03-13 18:23:39 -07:00
2011-03-13 18:23:39 -07:00
2011-03-13 18:23:39 -07:00