Skip to content

Cleanup platform pci_domain_nr()

Yijing Wang linux-alpha linux-arm-kernel linux-ia64 linux-m68k linux-mips linux-pci linuxppc-dev lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest10 patches 4 repliesIn review
  2. v119 patches 0 repliesSuperseded

Changes in v12 from the cover letter

Introduce wrap function pci_create_root_bus_generic() and pci_create_root_bus_generic() for arm/arm64 which enable CONFIG_PCI_DOMAINS_GENERIC.
Rebased this series based 4.2-rc1

Patches in v12 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10PCI: Save domain in pci_host_bridgearch/alpha/kernel/pci.c arch/alpha/kernel/sys_nautilus.c arch/arm/kernel/bios32.c +34 more+82 -600 replies
1/10PCI: Save domain in pci_host_bridgearch/alpha/kernel/pci.c arch/alpha/kernel/sys_nautilus.c arch/arm/kernel/bios32.c +34 more+82 -600 replies
2/10PCI: Move pci_bus_assign_domain_nr() declaration into drivers/pci/pci.hdrivers/pci/pci.h include/linux/pci.h+9 -60 replies
2/10PCI: Move pci_bus_assign_domain_nr() declaration into drivers/pci/pci.hdrivers/pci/pci.h include/linux/pci.h+9 -60 replies
3/10PCI: Remove declaration for pci_get_new_domain_nr()drivers/pci/pci.c include/linux/pci.h+2 -50 replies
4/10PCI: Introduce pci_host_assign_domain_nr() to assign domaindrivers/pci/pci.c drivers/pci/pci.h+20 -50 replies
4/10PCI: Introduce pci_host_assign_domain_nr() to assign domaindrivers/pci/pci.c drivers/pci/pci.h+20 -50 replies
5/10powerpc/PCI: Rename pcibios_root_bridge_prepare() to pcibios_root_bus_prepare()arch/powerpc/include/asm/machdep.h arch/powerpc/kernel/pci-common.c arch/powerpc/platforms/pseries/pci.c +3 more+16 -70 replies
5/10powerpc/PCI: Rename pcibios_root_bridge_prepare() to pcibios_root_bus_prepare()arch/powerpc/include/asm/machdep.h arch/powerpc/kernel/pci-common.c arch/powerpc/platforms/pseries/pci.c +3 more+16 -70 replies
6/10PCI: Make pci_host_bridge hold sysdata in drvdataarch/ia64/pci/pci.c arch/x86/pci/acpi.c drivers/pci/probe.c+3 -20 replies
6/10PCI: Make pci_host_bridge hold sysdata in drvdataarch/ia64/pci/pci.c arch/x86/pci/acpi.c drivers/pci/probe.c+3 -20 replies
7/10PCI: Create pci host bridge prior to root busdrivers/pci/probe.c+31 -270 replies
8/10PCI: Introduce common pci_domain_nr() and remove platform specific codearch/alpha/include/asm/pci.h arch/ia64/include/asm/pci.h arch/microblaze/include/asm/pci.h +13 more+9 -720 replies
8/10PCI: Introduce common pci_domain_nr() and remove platform specific codearch/alpha/include/asm/pci.h arch/ia64/include/asm/pci.h arch/microblaze/include/asm/pci.h +13 more+9 -720 replies
9/10PCI: Remove pci_bus_assign_domain_nr()drivers/pci/pci.c drivers/pci/pci.h drivers/pci/probe.c +1 more+3 -250 replies
9/10PCI: Remove pci_bus_assign_domain_nr()drivers/pci/pci.c drivers/pci/pci.h drivers/pci/probe.c +1 more+3 -250 replies
10/10IA64/PCI: Fix build warning found by kbuild testarch/ia64/sn/kernel/io_acpi_init.c arch/ia64/sn/kernel/io_init.c+4 -40 replies
10/10IA64/PCI: Fix build warning found by kbuild testarch/ia64/sn/kernel/io_acpi_init.c arch/ia64/sn/kernel/io_init.c+4 -40 replies

Reviews trailers per patch

None of the 18 patches has a Reviewed-by or Acked-by.

PatchGregory CLEMENT
1/10T-b T-b
1/10T-b T-b
2/10
2/10
3/10
4/10
4/10
5/10
5/10
6/10
6/10
7/10
8/10
8/10
9/10
9/10
10/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v12 thread

Cover letter [PATCH part3 v12 00/10] Cleanup platform pci_domain_nr()

This series is splitted out from previous patchset "Refine PCI scan interfaces and make generic pci host bridge". It try to clean up all platform pci_domain_nr(), save domain in pci_host_bridge, so we could get domain number from the common interface.

v11->v12:
Introduce wrap function pci_create_root_bus_generic() and pci_create_root_bus_generic() for arm/arm64 which enable CONFIG_PCI_DOMAINS_GENERIC.
Rebased this series based 4.2-rc1

Yijing Wang (10):
PCI: Save domain in pci_host_bridge
PCI: Move pci_bus_assign_domain_nr() declaration into
drivers/pci/pci.h
PCI: Remove declaration for pci_get_new_domain_nr()
PCI: Introduce pci_host_assign_domain_nr() to assign domain powerpc/PCI: Rename pcibios_root_bridge_prepare() to
pcibios_root_bus_prepare()
PCI: Make pci_host_bridge hold sysdata in drvdata
PCI: Create pci host bridge prior to root bus
PCI: Introduce common pci_domain_nr() and remove platform specific
code
PCI: Remove pci_bus_assign_domain_nr()
IA64/PCI: Fix build warning found by kbuild test

 arch/alpha/include/asm/pci.h             |    2 -
 arch/alpha/kernel/pci.c                  |    4 +-
 arch/alpha/kernel/sys_nautilus.c         |    2 +-
 arch/arm/kernel/bios32.c                 |    2 +-
 arch/arm/mach-dove/pcie.c                |    2 +-
 arch/arm/mach-iop13xx/pci.c              |    4 +-
 arch/arm/mach-mv78xx0/pcie.c             |    2 +-
 arch/arm/mach-orion5x/pci.c              |    4 +-
 arch/frv/mb93090-mb00/pci-vdk.c          |    3 +-
 arch/ia64/include/asm/pci.h              |    1 -
 arch/ia64/pci/pci.c                      |    6 +-
 arch/ia64/sn/kernel/io_acpi_init.c       |    6 +-
 arch/ia64/sn/kernel/io_init.c            |    6 +-
 arch/m68k/coldfire/pci.c                 |    2 +-
 arch/microblaze/include/asm/pci.h        |    2 -
 arch/microblaze/pci/pci-common.c         |   15 +----
 arch/mips/include/asm/pci.h              |    2 -
 arch/mips/pci/pci.c                      |    4 +-
 arch/mn10300/unit-asb2305/pci.c          |    3 +-
 arch/powerpc/include/asm/machdep.h       |    2 +-
 arch/powerpc/include/asm/pci.h           |    2 -
 arch/powerpc/kernel/pci-common.c         |   21 ++-----
 arch/powerpc/platforms/pseries/pci.c     |    2 +-
 arch/powerpc/platforms/pseries/pseries.h |    2 +-
 arch/powerpc/platforms/pseries/setup.c   |    2 +-
 arch/s390/include/asm/pci.h              |    1 -
 arch/s390/pci/pci.c                      |   10 +---
 arch/sh/drivers/pci/pci.c                |    4 +-
 arch/sh/include/asm/pci.h                |    2 -
 arch/sparc/include/asm/pci_64.h          |    1 -
 arch/sparc/kernel/leon_pci.c             |    2 +-
 arch/sparc/kernel/pci.c                  |   21 +------
 arch/sparc/kernel/pcic.c                 |    2 +-
 arch/tile/include/asm/pci.h              |    2 -
 arch/tile/kernel/pci.c                   |    4 +-
 arch/tile/kernel/pci_gx.c                |    4 +-
 arch/unicore32/kernel/pci.c              |    2 +-
 arch/x86/include/asm/pci.h               |    6 --
 arch/x86/pci/acpi.c                      |    6 +-
 arch/x86/pci/common.c                    |    2 +-
 arch/xtensa/kernel/pci.c                 |    2 +-
 drivers/parisc/dino.c                    |    2 +-
 drivers/parisc/lba_pci.c                 |    2 +-
 drivers/pci/host/pci-versatile.c         |    3 +-
 drivers/pci/host/pci-xgene.c             |    2 +-
 drivers/pci/host/pcie-designware.c       |    2 +-
 drivers/pci/host/pcie-iproc.c            |    2 +-
 drivers/pci/host/pcie-xilinx.c           |    2 +-
 drivers/pci/hotplug/ibmphp_core.c        |    2 +-
 drivers/pci/pci.c                        |   31 ++++++++--
 drivers/pci/pci.h                        |    1 +
 drivers/pci/probe.c                      |   92 +++++++++++++++++-------------
 drivers/pci/xen-pcifront.c               |    2 +-
 include/linux/pci.h                      |   39 ++++++-------
 54 files changed, 161 insertions(+), 195 deletions(-)