linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] PCI: Resource helper improvements
@ 2024-06-14 10:06 Ilpo Järvinen
  2024-06-14 10:06 ` [PATCH v2 1/4] resource: Add resource set range and size helpers Ilpo Järvinen
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Ilpo Järvinen @ 2024-06-14 10:06 UTC (permalink / raw)
  To: linux-pci, Bjorn Helgaas, Jonathan Cameron, Philipp Stanner,
	Lorenzo Pieralisi, Rob Herring, Krzysztof Wilczyński
  Cc: linux-kernel, Jonathan Hunter, linux-arm-kernel, linux-tegra,
	Robert Richter, Thierry Reding, Ilpo Järvinen

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(-)

-- 
2.39.2



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-11  0:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-14 10:06 [PATCH v2 0/4] PCI: Resource helper improvements Ilpo Järvinen
2024-06-14 10:06 ` [PATCH v2 1/4] resource: Add resource set range and size helpers Ilpo Järvinen
2024-06-14 10:06 ` [PATCH v2 2/4] PCI: Use resource_set_{range,size}() helpers Ilpo Järvinen
2024-06-14 10:06 ` [PATCH v2 3/4] PCI: Use align and resource helpers, and SZ_* in quirk_s3_64M() Ilpo Järvinen
2024-06-14 10:06 ` [PATCH v2 4/4] PCI: Introduce ALIGN_DOWN_IF_NONZERO() helper locally Ilpo Järvinen
2024-06-14 13:20   ` Jonathan Cameron
2024-10-10 22:48 ` [PATCH v2 0/4] PCI: Resource helper improvements Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).