usb: Store bus type in usb_hcd, not in driver flags.
commit83de4b2b90887b5b317d8313864fe4cc5db35280
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 2 Dec 2010 22:45:18 +0000 (2 14:45 -0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 14 Mar 2011 01:07:15 +0000 (13 18:07 -0700)
treee2eccac30913261d660be034e8f53a6640061738
parentd673bfcbfffdeb56064a6b1ee047b85590bed76c
usb: Store bus type in usb_hcd, not in driver flags.

The xHCI driver essentially has both a USB 2.0 and a USB 3.0 roothub.  So
setting the HCD_USB3 bits in the hcd->driver->flags is a bit misleading.
Add a new field to usb_hcd, bcdUSB.  Store the result of
hcd->driver->flags & HCD_MASK in it.  Later, when we have the xHCI driver
register the two roothubs, we'll set the usb_hcd->bcdUSB field to HCD_USB2
for the USB 2.0 roothub, and HCD_USB3 for the USB 3.0 roothub.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/core/hcd.c
include/linux/usb/hcd.h