Skip to content

PCI: pci_host_bridge related cleanup

Yinghai Lu linux-arch linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11PCI: Separate host_bridge code out from probe.cdrivers/pci/Makefile drivers/pci/host-bridge.c drivers/pci/pci.h +1 more+97 -810 replies
2/11x86, PCI: Fix memleak with get_current_resources()arch/x86/pci/acpi.c+30 -190 replies
3/11PCI: Rename pci_host_bridge() to find_pci_root_bridge()drivers/pci/host-bridge.c+13 -50 replies
4/11PCI: Add generic device into pci_host_bridge structdrivers/pci/host-bridge.c drivers/pci/pci.h drivers/pci/probe.c +1 more+39 -480 replies
5/11PCI: Add host bridge release supportdrivers/pci/host-bridge.c drivers/pci/probe.c include/linux/pci.h+15 -10 replies
6/11x86, PCI: Break down get_current_resource()arch/x86/pci/acpi.c+13 -210 replies
7/11x86, PCI: Add host bridge resource release for _CRS patharch/x86/pci/acpi.c+51 -120 replies
8/11x86, PCI: Embed name into pci_root_info structarch/x86/pci/acpi.c+2 -50 replies
9/11x86, PCI: Embed pci_sysdata into pci_root_info on acpi patharch/x86/pci/acpi.c+4 -170 replies
10/11x86, PCI: Allocate pci_root_info for not using _CRS patharch/x86/pci/amd_bus.c arch/x86/pci/broadcom_bus.c arch/x86/pci/bus_numa.c +1 more+88 -870 replies
11/11x86, PCI: Merge root info printing for not using _CRS patharch/x86/pci/amd_bus.c arch/x86/pci/broadcom_bus.c arch/x86/pci/bus_numa.c +1 more+20 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -v3 00/11] PCI: pci_host_bridge related cleanup

will add struct device dev into host_bridge struct.
also will add release support to make sure allocated resource get freed during root bus removal including hostbridge and pci_sysdata.

The patches need to apply to linus v3.3 plus pci/linux-next

could get from
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-hostbridge-cleanup

-v2: dropped the patch that is with x86 pcibios_bus_to_resource that Bjorn objected.
reorder the patchesset to mold one appended patch into previous patch.
-v3: separate the patchset.

Thanks

Yinghai

Yinghai Lu (11):
PCI: Separate host_bridge code out from probe.c x86, PCI: Fix memleak with get_current_resources()
PCI: Rename pci_host_bridge() to find_pci_root_bridge()
PCI: Add generic device into pci_host_bridge struct
PCI: Add host bridge release support
x86, PCI: Break down get_current_resource()
x86, PCI: Add host bridge resource release for _CRS path x86, PCI: Embed name into pci_root_info struct x86, PCI: Embed pci_sysdata into pci_root_info on acpi path x86, PCI: Allocate pci_root_info for not using _CRS path x86, PCI: Merge root info printing for not using _CRS path

 arch/x86/pci/acpi.c         |  116 +++++++++++++++++++++-------------
 arch/x86/pci/amd_bus.c      |   78 +++++++----------------
 arch/x86/pci/broadcom_bus.c |   17 +----
 arch/x86/pci/bus_numa.c     |   86 +++++++++++++++++++-------
 arch/x86/pci/bus_numa.h     |   19 +++---
 drivers/pci/Makefile        |    2 +-
 drivers/pci/host-bridge.c   |   96 ++++++++++++++++++++++++++++
 drivers/pci/probe.c         |  146 +++++++++++--------------------------------
 include/linux/pci.h         |    9 +++-
 9 files changed, 313 insertions(+), 256 deletions(-)
 create mode 100644 drivers/pci/host-bridge.c
Signature · 1 line
1.7.7