Skip to content

ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI)

Ricardo Ribalda acpica-devel linux-acpi linux-media linux-usb lkml 5 versions – In review

Get series with b4
b4 am [email protected] change-id 20241122-fix-ipu-a2fe28908964

Versions newest first

  1. v5 Latest7 patches 1 replyIn review
  2. v46 patches 3 repliesSuperseded
  3. v37 patches 29 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches2 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v5 from the cover letter

- Remove Fixes tag
- redefine acpi_get_physical_device_location() to return bool
- Link to v4: https://lore.kernel.org/r/[email protected]

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ACPI: bus: change the prototype for acpi_get_physical_device_locationdrivers/acpi/mipi-disco-img.c drivers/acpi/scan.c drivers/acpi/utils.c +4 more+10 -170 replies
2/7ACPI: bus: implement for_each_acpi_dev_match when !ACPIinclude/acpi/acpi_bus.h+3 -00 replies
3/7ACPI: bus: implement acpi_get_physical_device_location when !ACPIinclude/acpi/acpi_bus.h+9 -30 replies
4/7ACPI: header: implement acpi_device_handle when !ACPIinclude/linux/acpi.h+5 -00 replies
5/7ACPI: bus: implement for_each_acpi_consumer_dev when !ACPIinclude/acpi/acpi_bus.h+3 -00 replies
6/7ACPI: bus: implement acpi_device_hid when !ACPIinclude/acpi/acpi_bus.h+5 -00 replies
7/7media: ipu-bridge: Remove unneeded conditional compilationsdrivers/media/pci/intel/ipu-bridge.c+4 -250 replies

Reviews trailers per patch

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

PatchSakari AilusMauro Carvalho Chehab
1/7
2/7R-b A-b
3/7R-b A-b
4/7R-b A-b
5/7R-b A-b
6/7R-b A-b
7/7R-b A-b

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

Read the v5 thread

Cover letter [PATCH v5 0/7] ipu6: get rid of all the IS_ENABLED(CONFIG_ACPI)

We want to be able to compile_test the ipu6 driver in situations with !ACPI.

In order to do this we had to add some conditional #ifs, which lead to false positives on the static analysers.

Let's implement some helpers when !ACPI in the acpi headers to make the code more easier to maintain.

To: Rafael J. Wysocki <[email protected]>
To: Len Brown <[email protected]>
To: Robert Moore <[email protected]>
To: Rafael J. Wysocki <[email protected]>

Changes in v5:
- Remove Fixes tag
- redefine acpi_get_physical_device_location() to return bool
- Link to v4: https://lore.kernel.org/r/[email protected]

Changes in v4 (Thanks Sakari & Mauro):
- Squash the two ipu changes and merge everything via ACPI
- Space after ;
- move acpi_device_handle to avoid fwd declaration.
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Prefer static inlines to macros (Thanks Rafael).
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Add helpers in acpi to avoid conditional compilation
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Ricardo Ribalda (7):
ACPI: bus: change the prototype for acpi_get_physical_device_location
ACPI: bus: implement for_each_acpi_dev_match when !ACPI
ACPI: bus: implement acpi_get_physical_device_location when !ACPI
ACPI: header: implement acpi_device_handle when !ACPI
ACPI: bus: implement for_each_acpi_consumer_dev when !ACPI
ACPI: bus: implement acpi_device_hid when !ACPI
media: ipu-bridge: Remove unneeded conditional compilations

 drivers/acpi/mipi-disco-img.c        |  3 +--
 drivers/acpi/scan.c                  |  4 +---
 drivers/acpi/utils.c                 |  7 +++----
 drivers/base/physical_location.c     |  4 +---
 drivers/media/pci/intel/ipu-bridge.c | 29 ++++-------------------------
 drivers/usb/core/usb-acpi.c          |  3 +--
 include/acpi/acpi_bus.h              | 23 ++++++++++++++++++++---
 include/linux/acpi.h                 |  5 +++++
 8 files changed, 36 insertions(+), 42 deletions(-)

---
base-commit: d216d9cb4dd854ef0a2ec1701f403facb298af51
change-id: 20241122-fix-ipu-a2fe28908964

Best regards,

Signature · 1 line
Ricardo Ribalda <[email protected]>