]> git.itanic.dy.fi Git - linux-stable/commit
Intel xhci: refactor EHCI/xHCI port switching
authorMathias Nyman <mathias.nyman@linux.intel.com>
Tue, 23 Jul 2013 08:35:47 +0000 (11:35 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 23 Jul 2013 21:50:29 +0000 (14:50 -0700)
commit26b76798e0507429506b93cd49f8c4cfdab06896
tree264be6752d1b833de4807f33c18f971993c0f952
parent063ebeb4335312d05bdf6fb4fc0e41500c6c0afb
Intel xhci: refactor EHCI/xHCI port switching

Make the Linux xHCI driver automatically try to switchover the EHCI ports to
xHCI when an Intel xHCI host is detected, and it also finds an Intel EHCI host.

This means we will no longer have to add Intel xHCI hosts to a quirks list when
the PCI device IDs change.  Simply continuing to add new Intel xHCI PCI device
IDs to the quirks list is not sustainable.

During suspend ports may be swicthed back to EHCI by BIOS and not properly
restored to xHCI at resume. Previously both EHCI and xHCI resume functions
switched ports back to XHCI, but it's enough to do it in xHCI only
because the hub driver doesn't start running again until after both hosts are resumed.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/ehci-pci.c
drivers/usb/host/pci-quirks.c
drivers/usb/host/pci-quirks.h
drivers/usb/host/xhci-pci.c