]> git.baikalelectronics.ru Git - kernel.git/commit
Intel xhci: Only switch the switchable ports
authorKeng-Yu Lin <kengyu@canonical.com>
Thu, 9 Aug 2012 17:39:23 +0000 (01:39 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Sep 2012 22:10:00 +0000 (15:10 -0700)
commit03003834fe2fca04a864c8c981c6602343ab1c0a
treebe221e3fd0b198e135ae5c6a25cd1611b40d3e68
parentd7e74e2643bcc6340a698a48c1c83e096d4c0524
Intel xhci: Only switch the switchable ports

With a previous patch to enable the EHCI/XHCI port switching, it switches
all the available ports.

The assumption is not correct because the BIOS may expect some ports
not switchable by the OS.

There are two more registers that contains the information of the switchable
and non-switchable ports.

This patch adds the checking code for the two register so that only the
switchable ports are altered.

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

Signed-off-by: Keng-Yu Lin <kengyu@canonical.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: stable@vger.kernel.org
drivers/usb/host/pci-quirks.c