linux/drivers/pci/pcie
Mika Westerberg 5352a44a56 PCI: pciehp: Make pciehp_is_native() stricter
Previously pciehp_is_native() returned true for any PCI device in a
hierarchy where _OSC says we can use pciehp.  This is incorrect because
bridges without PCI_EXP_SLTCAP_HPC capability should be managed by acpiphp
instead.

Improve pciehp_is_native() to return true only when PCI_EXP_SLTCAP_HPC is
set and the pciehp driver is present.  In any other case return false
to let acpiphp handle those.

Suggested-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
[bhelgaas: remove NULL pointer check]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2018-06-02 00:18:28 -05:00
..
aer Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
aspm.c Merge branch 'pci/misc' 2018-04-04 13:27:45 -05:00
dpc.c PCI/DPC: Rename from pcie-dpc.c to dpc.c 2018-03-31 17:48:57 -05:00
Kconfig Merge branch 'pci/spdx' into next 2018-02-01 11:40:07 -06:00
Makefile Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
pme.c PCI/portdrv: Merge pcieport_if.h into portdrv.h 2018-03-09 11:42:01 -06:00
portdrv_acpi.c PCI/DPC: Do not enable DPC if AER control is not allowed by the BIOS 2018-03-30 17:33:34 -05:00
portdrv_core.c PCI: pciehp: Rename host->native_hotplug to host->native_pcie_hotplug 2018-06-02 00:18:28 -05:00
portdrv_pci.c Merge branch 'pci/portdrv' 2018-04-04 13:27:58 -05:00
portdrv.h PCI: pciehp: Make pciehp_is_native() stricter 2018-06-02 00:18:28 -05:00
ptm.c Merge branch 'pci/spdx' into next 2018-02-01 11:40:07 -06:00