Skip to content

PCI dma-ranges parsing consolidation

Rob Herring linux-arm-kernel linux-mediatek linux-pci linux-renesas-soc linux-rockchip 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11PCI: aardvark: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pci-aardvark.c+4 -542 replies
2/11PCI: altera: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-altera.c+2 -366 replies
3/11PCI: mediatek: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pcie-mediatek.c+17 -301 reply
4/11PCI: versatile: Enable COMPILE_TESTdrivers/pci/controller/Kconfig+1 -11 reply
5/11PCI: versatile: Use pci_parse_request_of_pci_ranges()drivers/pci/controller/pci-versatile.c+11 -515 replies
6/11PCI: of: Add inbound resource parsing to helpersdrivers/pci/controller/dwc/pcie-designware-host.c drivers/pci/controller/pci-aardvark.c drivers/pci/controller/pci-ftpci100.c +16 more+72 -185 replies
7/11PCI: ftpci100: Use inbound resources for setupdrivers/pci/controller/pci-ftpci100.c+9 -171 reply
8/11PCI: v3-semi: Use inbound resources for setupdrivers/pci/controller/pci-v3-semi.c+16 -222 replies
9/11PCI: xgene: Use inbound resources for setupdrivers/pci/controller/pci-xgene.c+10 -221 reply
10/11PCI: iproc: Use inbound resources for setupdrivers/pci/controller/pcie-iproc.c+8 -551 reply
11/11PCI: rcar: Use inbound resources for setupdrivers/pci/controller/pcie-rcar.c+16 -293 replies

Reviews trailers per patch

9 of 11 patches have a Reviewed-by or Acked-by.

PatchThomas PetazzoniAndrew MurrayGustavo PimentelJingoo HanLinus Walleij
1/11T-b R-b
2/11
3/11R-b
4/11R-b
5/11R-b
6/11T-b R-b A-b A-b A-b
7/11R-b
8/11R-b R-b
9/11R-b
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 00/11] PCI dma-ranges parsing consolidation

This series moves the DT 'dma-ranges' parsing into common helpers utilizing a resource list. In the process of doing this, I noticed several cases where pci_parse_request_of_pci_ranges() could be used so I converted those drivers first. The last 5 patches make the actual change to use the common 'dma_ranges' resource list. There's no (intended) functional change in this series though I'm also working on a separate series to improve the handling of 'dma-ranges' and dma masks.

pci-rcar-gen2 is the only remaining driver doing its own dma-ranges handling as it is still using the old ARM PCI functions. Looks like it is the last one (in drivers/pci/).

Compile tested only.

Rob

Rob Herring (11):
PCI: aardvark: Use pci_parse_request_of_pci_ranges()
PCI: altera: Use pci_parse_request_of_pci_ranges()
PCI: mediatek: Use pci_parse_request_of_pci_ranges()
PCI: versatile: Enable COMPILE_TEST
PCI: versatile: Use pci_parse_request_of_pci_ranges()
PCI: of: Add inbound resource parsing to helpers
PCI: ftpci100: Use inbound resources for setup
PCI: v3-semi: Use inbound resources for setup
PCI: xgene: Use inbound resources for setup
PCI: iproc: Use inbound resources for setup
PCI: rcar: Use inbound resources for setup

 drivers/pci/controller/Kconfig                |  2 +-
 .../pci/controller/dwc/pcie-designware-host.c |  3 +-
 drivers/pci/controller/pci-aardvark.c         | 58 ++---------------
 drivers/pci/controller/pci-ftpci100.c         | 29 ++++-----
 drivers/pci/controller/pci-host-common.c      |  2 +-
 drivers/pci/controller/pci-v3-semi.c          | 40 +++++-------
 drivers/pci/controller/pci-versatile.c        | 62 ++++--------------
 drivers/pci/controller/pci-xgene.c            | 33 ++++------
 drivers/pci/controller/pcie-altera.c          | 38 +----------
 drivers/pci/controller/pcie-cadence-host.c    |  2 +-
 drivers/pci/controller/pcie-iproc-platform.c  |  1 +
 drivers/pci/controller/pcie-iproc.c           | 63 +++----------------
 drivers/pci/controller/pcie-mediatek.c        | 47 +++++---------
 drivers/pci/controller/pcie-mobiveil.c        |  4 +-
 drivers/pci/controller/pcie-rcar.c            | 48 ++++++--------
 drivers/pci/controller/pcie-rockchip-host.c   |  3 +-
 drivers/pci/controller/pcie-xilinx-nwl.c      |  2 +-
 drivers/pci/controller/pcie-xilinx.c          |  2 +-
 drivers/pci/of.c                              | 44 ++++++++++++-
 drivers/pci/pci.h                             |  8 ++-
 include/linux/pci.h                           |  2 +
 21 files changed, 162 insertions(+), 331 deletions(-)

--
2.20.1