Skip to content

resource: introduce union(), intersection() API

Andy Shevchenko linux-acpi linux-pci lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest7 patches 3 repliesIn review
  2. v57 patches 1 replySuperseded
  3. v46 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v36 patches1 replySuperseded
v17 patches16 repliesSuperseded

Changes in v6 from the cover letter

- added missed tags

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7resource: Simplify region_intersects() by reducing conditionalskernel/resource.c+5 -50 replies
2/7resource: Group resource_overlaps() with other inline helpersinclude/linux/ioport.h+5 -60 replies
3/7resource: Introduce resource_union() for overlapping resourcesinclude/linux/ioport.h+12 -10 replies
4/7resource: Introduce resource_intersection() for overlapping resourcesinclude/linux/ioport.h+10 -00 replies
5/7resource: Add test cases for new resource APIkernel/Makefile kernel/resource_kunit.c lib/Kconfig.debug+162 -00 replies
6/7PCI/ACPI: Replace open coded variant of resource_union()drivers/acpi/pci_root.c+1 -30 replies
7/7ACPI: watchdog: Replace open coded variant of resource_union()drivers/acpi/acpi_watchdog.c+1 -50 replies

Reviews trailers per patch

6 of 7 patches have a Reviewed-by or Acked-by.

PatchHanjun GuoRafael J. WysockiKuppuswamy SathyanarayananMika Westerberg
1/7R-b T-b R-b
2/7R-b T-b R-b
3/7R-b T-b R-b
4/7R-b R-b
5/7
6/7R-b T-b R-b R-b
7/7R-b T-b R-b R-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 4 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/7] resource: introduce union(), intersection() API

Some users may want to use resource library to manage their own resources, besides existing users that open code union() and intersection() implementations.

Provide a generic API for wider use.

Changelog v6:
- added missed tags

Changelog v5:
- added test cases (Greg)

Changelog v4:
- added Rb tag (Rafael)
- Cc'ed to LKML and Greg (Rafael)

Changelog v3:
- rebased on top of v5.10-rc1
- dropped upstreamed dependencies
- added Rb tag to the last patch (Mika)

Cc Kuppuswamy Sathyanarayanan <[email protected]>
Cc Bjorn Helgaas <[email protected]>

Andy Shevchenko (7):
resource: Simplify region_intersects() by reducing conditionals
resource: Group resource_overlaps() with other inline helpers
resource: Introduce resource_union() for overlapping resources
resource: Introduce resource_intersection() for overlapping resources
resource: Add test cases for new resource API
PCI/ACPI: Replace open coded variant of resource_union()
ACPI: watchdog: Replace open coded variant of resource_union()

 drivers/acpi/acpi_watchdog.c |   6 +-
 drivers/acpi/pci_root.c      |   4 +-
 include/linux/ioport.h       |  34 ++++++--
 kernel/Makefile              |   1 +
 kernel/resource.c            |  10 +--
 kernel/resource_kunit.c      | 150 +++++++++++++++++++++++++++++++++++
 lib/Kconfig.debug            |  11 +++
 7 files changed, 196 insertions(+), 20 deletions(-)
 create mode 100644 kernel/resource_kunit.c
Signature · 1 line
2.28.0