summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp_pci.c
diff options
context:
space:
mode:
authorBjorn Helgaas2014-08-27 22:29:47 +0200
committerBjorn Helgaas2014-09-13 04:09:46 +0200
commit6cd33649fa83d97ba7b66f1d871a360e867c5220 (patch)
tree03759f14b6b7e90c7b6179a007a3f2f304d9ac95 /drivers/pci/hotplug/pciehp_pci.c
parentPCI: Move pci_configure_slot() to drivers/pci/probe.c (diff)
downloadkernel-qcow2-linux-6cd33649fa83d97ba7b66f1d871a360e867c5220.tar.gz
kernel-qcow2-linux-6cd33649fa83d97ba7b66f1d871a360e867c5220.tar.xz
kernel-qcow2-linux-6cd33649fa83d97ba7b66f1d871a360e867c5220.zip
PCI: Add pci_configure_device() during enumeration
Some platforms can tell the OS how to configure PCI devices, e.g., how to set cache line size, error reporting enables, etc. ACPI defines _HPP and _HPX methods for this purpose. This configuration was previously done by some of the hotplug drivers using pci_configure_slot(). But not all hotplug drivers did this, and per the spec (ACPI rev 5.0, sec 6.2.7), we can also do it for "devices not configured by the BIOS at system boot." Move this configuration into the PCI core by adding pci_configure_device() and calling it from pci_device_add(), so we do this for all devices as we enumerate them. This is based on pci_configure_slot(), which is used by hotplug drivers. I omitted: - pcie_bus_configure_settings() because it configures MPS and MRRS, which requires global knowledge of the fabric and must be done later, and - configuration of subordinate devices; that will happen when we call pci_device_add() for those devices. Because pci_configure_slot() was only done by hotplug drivers, this initial version of pci_configure_device() only configures hot-added devices, ignoring anything added during boot. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org>
Diffstat (limited to 'drivers/pci/hotplug/pciehp_pci.c')
0 files changed, 0 insertions, 0 deletions