]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 3 May 2012 20:16:32 +0000 (13:16 -0700)
commit69d5330e3fa317db50de23e9bcb15a6a6031abfe
treea1f97e55ac2657a7b1f02c3637f4e03ccac4a884
parent40208bddd47d4501fb26e8f790ac3d995bb801ea
xhci: Avoid dead ports when CONFIG_USB_XHCI_HCD=n

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 298e3a6735391ac220c926702b1f9aa817cf2b0f
"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>
Cc: stable@vger.kernel.org
drivers/usb/host/pci-quirks.c