Skip to content

dmaengine: use designated initializers for acpi_device_id

Pawel Zalewski dmaengine linux-arm-kernel linux-arm-msm lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20260904-acpi-dma-ee1add4bae4e

Versions newest first

  1. v3 Latest4 patches 4 repliesApplied
  2. v24 patches 3 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Changed the title tag to dmaengine; added Reviewed-by from V2.
- Link to v2: https://patch.msgid.link/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4dmaengine: dw: use designated initializers for acpi_device_iddrivers/dma/dw/platform.c+6 -60 replies
2/4dmaengine: loongson: use named initializers for acpi_device_iddrivers/dma/loongson/loongson2-apb-cmc-dma.c+2 -21 reply
3/4dmaengine: qcom: use named initializers for acpi_device_iddrivers/dma/qcom/hidma.c+4 -41 reply
4/4dmaengine: xgene-dma: use named initializers for acpi_device_iddrivers/dma/xgene-dma.c+2 -21 reply

Reviews trailers per patch

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

PatchAndy ShevchenkoFrank LiBinbin Zhou
1/4R-b R-b
2/4R-b R-b R-b
3/4R-b R-b
4/4R-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 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/4] dmaengine: use designated initializers for acpi_device_id

This series is converting lists that contain the acpi_device_id struct, which is defined in the include/linux/device-id/acpi.h to make use of named initializers (which they do not use currently). This work is part of the on going effort in the kernel associated with device-ids [1]

The plan is to convert acpi_device_id::driver_data to have an anonymous union, similarly to what was introduced for PCI and I2C device ID tables. The goal is to increase type-safety (most of the existing casts are gone), to improve readability and to make use intent a bit more clear:

```
union {
	kernel_ulong_t driver_data;
	const void *driver_data_ptr;
}
```

But for that to work all lists containing the structs need to use named initializers first to avoid triggering -Wmissing-braces. I already have patches that implement this and touching a lot of kernel subsystmes that use the acpi_device_id struct and that list keeps on growing. Therefore, I have decided to split the series per every subsystem into:
- pre-clean-ups that convert the lists to use named initializers (which is this series)
- actual implementations that make some of the modules use the new driver_data_ptr member

That way the task can be fragmented into manageable and independent chunks of work and makes this effort easier to review.

Tested builds on x86-64 and a64 in Yocto using 7.3-rc2.

[1] https://lore.kernel.org/all/[email protected]/

---
Changes in v3:
- Changed the title tag to dmaengine; added Reviewed-by from V2.
- Link to v2: https://patch.msgid.link/[email protected]

Changes in v2:
- Tidy up messages and wrapped at 75 chars; added Reviewed-bys from V1.
- Link to v1: https://patch.msgid.link/[email protected]

To: Viresh Kumar <[email protected]>
To: Andy Shevchenko <[email protected]>
To: Vinod Koul <[email protected]>
To: Frank Li <[email protected]>
To: Binbin Zhou <[email protected]>
To: Sinan Kaya <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Pawel Zalewski (4):
dmaengine: dw: use designated initializers for acpi_device_id
dmaengine: loongson: use named initializers for acpi_device_id
dmaengine: qcom: use named initializers for acpi_device_id
dmaengine: xgene-dma: use named initializers for acpi_device_id

 drivers/dma/dw/platform.c                    | 12 ++++++------
 drivers/dma/loongson/loongson2-apb-cmc-dma.c |  4 ++--
 drivers/dma/qcom/hidma.c                     |  8 ++++----
 drivers/dma/xgene-dma.c                      |  4 ++--
 4 files changed, 14 insertions(+), 14 deletions(-)

---
base-commit: df2908090cda368b01ff43709f51890076c56157
change-id: 20260904-acpi-dma-ee1add4bae4e

Best regards,

Signature · 1 line
Pawel Zalewski <[email protected]>