PCI: Use device bus range info to cleanup RC Host/EP pci_fixup_addr()
Status from this message: Applied to pci/controller/dwc-cpu-addr-fixup for v6.15.
Get series with b4
b4 am [email protected]Versions newest first
- v12 Latest13 patches 22 repliesApplied
Changes in v12 from the cover letter
- Call devm_pci_alloc_host_bridge() early in dw_pcie_host_init(), before any devicetree-related code
- Call devm_pci_epc_create() early in dw_pcie_ep_init(), before any devicetree-related code
- Consolidate devicetree-related code in dw_pcie_host_get_resources() and dw_pcie_ep_get_resources()
- Integrate dw_pcie_cfg0_setup() into dw_pcie_host_get_resources()
- Convert dw_pcie_init_parent_bus_offset() to dw_pcie_parent_bus_offset() which returns the offset rather than setting it internally
- Split the debug comparison of devicetree info with .cpu_addr_fixup() to separate patch so we can easily revert it later
- Drop "cpu_addr_fixup() usage detected" warning since we always warn about something in that case anyway
Patches in v12 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | PCI: dwc: Use resource start as iomap() input in dw_pcie_pme_turn_off()drivers/ | +1 | 0 replies | |
| 2/13 | PCI: dwc: Rename cpu_addr to parent_bus_addr for ATU configurationdrivers/ drivers/ drivers/ +1 more | +31 | 0 replies | |
| 3/13 | PCI: dwc: Call devm_pci_alloc_host_bridge() early in dw_pcie_host_init()drivers/ | +6 | 0 replies | |
| 4/13 | PCI: dwc: Consolidate devicetree handling in dw_pcie_host_get_resources()drivers/ | +25 | 1 reply | |
| 5/13 | PCI: dwc: Add dw_pcie_parent_bus_offset()drivers/ drivers/ | +26 | 5 replies | |
| 6/13 | PCI: dwc: Add dw_pcie_parent_bus_offset() checking and debugdrivers/ drivers/ | +38 | 8 replies | |
| 7/13 | PCI: dwc: Use devicetree 'reg[config]' to derive CPU -> ATU addr offsetdrivers/ drivers/ | +7 | 0 replies | |
| 8/13 | PCI: dwc: ep: Call epc_create() early in dw_pcie_ep_init()drivers/ | +9 | 1 reply | |
| 9/13 | PCI: dwc: ep: Consolidate devicetree handling in dw_pcie_ep_get_resources()drivers/ | +41 | 1 reply | |
| 10/13 | PCI: dwc: ep: Use devicetree 'reg[addr_space]' to derive CPU -> ATU addr offsetdrivers/ | +7 | 1 reply | |
| 11/13 | PCI: dwc: ep: Ensure proper iteration over outbound map windowsdrivers/ | +1 | 0 replies | |
| 12/13 | PCI: dwc: Use parent_bus_offset to remove need for .cpu_addr_fixup()drivers/ drivers/ drivers/ | +9 | 1 reply | |
| 13/13 | PCI: imx6: Remove cpu_addr_fixup()drivers/ | +1 | 0 replies |
Reviews trailers per patch
4 of 13 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Manivannan Sadhasivam | Richard Zhu | Frank Li |
|---|---|---|---|
| Series | A-b T-b | ||
| 1/13 | |||
| 2/13 | |||
| 3/13 | |||
| 4/13 | R-b | ||
| 5/13 | |||
| 6/13 | |||
| 7/13 | |||
| 8/13 | R-b | ||
| 9/13 | R-b | ||
| 10/13 | |||
| 11/13 | |||
| 12/13 | |||
| 13/13 | R-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v12 00/13] PCI: Use device bus range info to cleanup RC Host/EP pci_fixup_addr()
From: Bjorn Helgaas <[email protected]>
This is a v12 based on Frank's v11 series.
v11 https://lore.kernel.org/r/[email protected]
Changes from v11:
- Call devm_pci_alloc_host_bridge() early in dw_pcie_host_init(), before any devicetree-related code
- Call devm_pci_epc_create() early in dw_pcie_ep_init(), before any devicetree-related code
- Consolidate devicetree-related code in dw_pcie_host_get_resources() and dw_pcie_ep_get_resources()
- Integrate dw_pcie_cfg0_setup() into dw_pcie_host_get_resources()
- Convert dw_pcie_init_parent_bus_offset() to dw_pcie_parent_bus_offset() which returns the offset rather than setting it internally
- Split the debug comparison of devicetree info with .cpu_addr_fixup() to separate patch so we can easily revert it later
- Drop "cpu_addr_fixup() usage detected" warning since we always warn about something in that case anyway
Any comments welcome.
Bjorn Helgaas (3):
PCI: dwc: Consolidate devicetree handling in
dw_pcie_host_get_resources()
PCI: dwc: ep: Call epc_create() early in dw_pcie_ep_init()
PCI: dwc: ep: Consolidate devicetree handling in
dw_pcie_ep_get_resources()
Frank Li (10):
PCI: dwc: Use resource start as iomap() input in
dw_pcie_pme_turn_off()
PCI: dwc: Rename cpu_addr to parent_bus_addr for ATU configuration
PCI: dwc: Call devm_pci_alloc_host_bridge() early in
dw_pcie_host_init() PCI: dwc: Add dw_pcie_parent_bus_offset()
PCI: dwc: Add dw_pcie_parent_bus_offset() checking and debug
PCI: dwc: Use devicetree 'reg[config]' to derive CPU -> ATU addr
offset
PCI: dwc: ep: Use devicetree 'reg[addr_space]' to derive CPU -> ATU
addr offset
PCI: dwc: ep: Ensure proper iteration over outbound map windows
PCI: dwc: Use parent_bus_offset to remove need for .cpu_addr_fixup()
PCI: imx6: Remove cpu_addr_fixup()
drivers/pci/controller/dwc/pci-imx6.c | 18 +--- .../pci/controller/dwc/pcie-designware-ep.c | 74 +++++++++++------ .../pci/controller/dwc/pcie-designware-host.c | 57 ++++++++----- drivers/pci/controller/dwc/pcie-designware.c | 82 ++++++++++++++----- drivers/pci/controller/dwc/pcie-designware.h | 24 +++++- 5 files changed, 171 insertions(+), 84 deletions(-)
Signature · 1 line
2.34.1