xhci: Avoid dead ports when CONFIG_USB_XHCI_HCD=n
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 16 Apr 2012 17:56:47 +0000 (10:56 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:35 +0000 (00:43 +0100)
commit872fbe2baeaa9374acd0ccf721b6b7d9d6987f5c
tree410b7aa9a61d68e72ba8baf0ed284eacad9bc6d5
parentd2038bcf8b8c4aeb2c19eb6e5a681728494a6670
xhci: Avoid dead ports when CONFIG_USB_XHCI_HCD=n

commit 51c9e6c7732b67769c0a514d31f505e49fa82dd4 upstream.

If the user chooses to say "no" to CONFIG_USB_XHCI_HCD on a system
with an Intel Panther Point chipset, the PCI quirks code or the EHCI
driver will switch the ports over to the xHCI host, but the xHCI driver
will never load.  The ports will be powered off and seem "dead" to the
user.

Fix this by only switching the ports over if CONFIG_USB_XHCI_HCD is
either compiled in, or compiled as a module.

This patch should be backported to stable kernels as old as 3.0,
that contain commit 69e848c2090aebba5698a1620604c7dccb448684
"Intel xhci: Support EHCI/xHCI port switching."

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Reported-by: Eric Anholt <eric.anholt@intel.com>
Reported-by: David Bein <d.bein@f5.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/pci-quirks.c