linux/drivers/pci/pcie
Huang Ying c733b77475 PCI/PM: Do not suspend port if any subordinate device needs PME polling
Ulrich reported that his USB3 cardreader does not work reliably when
connected to the USB3 port.  It turns out that USB3 controller failed to
awaken when plugging in the USB3 cardreader.  Further experiments found
that the USB3 host controller can only be awakened via polling, not via PME
interrupt.  But if the PCIe port to which the USB3 host controller is
connected is suspended, we cannot poll the controller because its config
space is not accessible when the PCIe port is in a low power state.

To solve the issue, the PCIe port will not be suspended if any subordinate
device needs PME polling.

[bhelgaas: use bool consistently rather than mixing int/bool]
Reference: http://lkml.kernel.org/r/50841CCC.9030809@uli-eckhardt.de
Reported-by: Ulrich Eckhardt <usb@uli-eckhardt.de>
Tested-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
CC: stable@vger.kernel.org	# v3.6+
2012-12-26 10:39:23 -07:00
..
aer PCI changes for the v3.8 merge window: 2012-12-13 12:14:47 -08:00
aspm.c Merge branch 'pci/bjorn-pcie-cap' into next 2012-12-07 12:11:52 -07:00
Kconfig
Makefile
pme.c PCI/PME: Use PCI Express Capability accessors 2012-08-23 10:11:11 -06:00
portdrv_acpi.c
portdrv_bus.c PCI: Introduce pci_pcie_type(dev) to replace pci_dev->pcie_type 2012-08-23 09:40:57 -06:00
portdrv_core.c Merge branch 'pci/bjorn-pcie-cap' into next 2012-12-07 12:11:52 -07:00
portdrv_pci.c PCI/PM: Do not suspend port if any subordinate device needs PME polling 2012-12-26 10:39:23 -07:00
portdrv.h