mbox series

[v2,0/4] PCI: Resource helper improvements

Message ID 20240614100606.15830-1-ilpo.jarvinen@linux.intel.com (mailing list archive)
Headers show
Series PCI: Resource helper improvements | expand

Message

Ilpo Järvinen June 14, 2024, 10:06 a.m. UTC
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(-)

Comments

Bjorn Helgaas Oct. 10, 2024, 10:48 p.m. UTC | #1
On Fri, Jun 14, 2024 at 01:06:02PM +0300, Ilpo Järvinen wrote:
> 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(-)

Sorry this slipped through the cracks.  Applied to pci/resource for
v6.13, thanks!