linux_dsm_epyc7002/drivers/pci/host
Lorenzo Pieralisi 8c7d14746a ARM/PCI: Move to generic PCI domains
Most if not all ARM PCI host controller device drivers either ignore the
domain field in the pci_sys_data structure or just increment it every time
a host controller is probed, using it as a domain counter.

Therefore, instead of relying on pci_sys_data to stash the domain number in
a standard location, ARM pcibios code can be moved to the newly introduced
generic PCI domains code, implemented in commits:

  41e5c0f81d ("of/pci: Add pci_get_new_domain_nr() and of_get_pci_domain_nr()")
  670ba0c888 ("PCI: Add generic domain handling")

ARM code is made to select PCI_DOMAINS_GENERIC by default, which builds
core PCI code that assigns the domain number through the generic function:

  void pci_bus_assign_domain_nr(...)

that relies on a DT property to define the domain number or falls back to a
counter according to a predefined logic; its usage replaces the current
domain assignment code in PCI host controllers present in the kernel.

Tested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Yijing Wang <wangyijing@huawei.com>
Reviewed-By: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> # mvebu
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Phil Edworthy <phil.edworthy@renesas.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
CC: Mohit Kumar <mohit.kumar@st.com>
2014-12-27 18:19:18 -07:00
..
Kconfig Merge branches 'pci/host-designware', 'pci/host-dra7xx', 'pci/host-exynos', 'pci/host-generic', 'pci/host-imx6', 'pci/host-keystone', 'pci/host-layerscape', 'pci/host-mvebu', 'pci/host-rcar', 'pci/host-spear' and 'pci/host-tegra' into next 2014-11-15 07:26:12 -07:00
Makefile PCI: layerscape: Add Freescale Layerscape PCIe driver 2014-11-13 09:31:52 -07:00
pci-dra7xx.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pci-exynos.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pci-host-generic.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pci-imx6.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pci-keystone-dw.c PCI changes for the v3.19 merge window: 2014-12-10 20:58:52 -08:00
pci-keystone.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pci-keystone.h PCI/MSI: Rename "struct msi_chip" to "struct msi_controller" 2014-11-12 07:49:38 -07:00
pci-layerscape.c PCI: layerscape: Add Freescale Layerscape PCIe driver 2014-11-13 09:31:52 -07:00
pci-mvebu.c ARM/PCI: Move to generic PCI domains 2014-12-27 18:19:18 -07:00
pci-rcar-gen2.c pci: host: drop owner assignment from platform_drivers 2014-10-20 16:21:20 +02:00
pci-tegra.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pci-xgene.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pcie-designware.c ARM/PCI: Move to generic PCI domains 2014-12-27 18:19:18 -07:00
pcie-designware.h PCI/MSI: Rename "struct msi_chip" to "struct msi_controller" 2014-11-12 07:49:38 -07:00
pcie-rcar.c ARM/PCI: Move to generic PCI domains 2014-12-27 18:19:18 -07:00
pcie-spear13xx.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00
pcie-xilinx.c Driver core patches for 3.19-rc1 2014-12-14 16:10:09 -08:00