Skip to content

PCI: Resource helper improvements

Ilpo Järvinen linux-arm-kernel linux-pci linux-tegra lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Improved commit message
- Added patch to introduce ALIGN_DOWN_IF_NONZERO()

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4resource: Add resource set range and size helpersinclude/linux/ioport.h+32 -00 replies
2/4PCI: Use resource_set_{range,size}() helpersdrivers/pci/controller/pci-tegra.c drivers/pci/controller/pci-thunder-pem.c drivers/pci/ecam.c +5 more+34 -450 replies
3/4PCI: Use align and resource helpers, and SZ_* in quirk_s3_64M()drivers/pci/quirks.c+2 -10 replies
4/4PCI: Introduce ALIGN_DOWN_IF_NONZERO() helper locallydrivers/pci/setup-bus.c+6 -61 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJonathan Cameron
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] PCI: Resource helper improvements

This series introduces resource_set_{range,size}() helpers to replace often repeated code fragments to set resource start and end addresses. The last two patches clean up nearby code.

For now, this series only converts PCI subsystem. There are plenty of resource start/end setting code elsewhere in the kernel but those can be converted once the helpers reach Linus' tree.

--
v2:
- Improved commit message
- Added patch to introduce ALIGN_DOWN_IF_NONZERO()

Ilpo Järvinen (4):
resource: Add resource set range and size helpers
PCI: Use resource_set_{range,size}() helpers
PCI: Use align and resource helpers, and SZ_* in quirk_s3_64M()
PCI: Introduce ALIGN_DOWN_IF_NONZERO() helper locally

 drivers/pci/controller/pci-tegra.c       |  2 +-
 drivers/pci/controller/pci-thunder-pem.c |  4 +--
 drivers/pci/ecam.c                       |  2 +-
 drivers/pci/iov.c                        |  6 ++--
 drivers/pci/pci.c                        |  3 +-
 drivers/pci/quirks.c                     | 23 +++++++---------
 drivers/pci/setup-bus.c                  | 35 ++++++++++--------------
 drivers/pci/setup-res.c                  |  7 ++---
 include/linux/ioport.h                   | 32 ++++++++++++++++++++++
 9 files changed, 68 insertions(+), 46 deletions(-)
Signature · 1 line
2.39.2