Skip to content

ACPI: sysfs: manage sysfs attributes through device core

Thomas Weißschuh acpica-devel linux-acpi lkml stable 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20240609-acpi-sysfs-groups-cfa756d16752

Versions newest first

  1. v2 Latest5 patches 2 repliesIn review
  2. v15 patches 10 repliesSuperseded

Changes in v2 from the cover letter

- Add fix to validate buffer type validation (patch 1)
- Drop usage of devm-APIs as these are unusable for unbound devices
- Evaluate _STR on each sysfs access
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ACPI: sysfs: validate return type of _STR methoddrivers/acpi/device_sysfs.c+3 -20 replies
2/5ACPI: sysfs: evaluate _STR on each sysfs accessdrivers/acpi/device_sysfs.c include/acpi/acpi_bus.h+15 -160 replies
3/5ACPI: sysfs: manage attributes as attribute_groupdrivers/acpi/device_sysfs.c+71 -960 replies
4/5ACPI: sysfs: manage sysfs attributes through device coredrivers/acpi/device_sysfs.c drivers/acpi/internal.h drivers/acpi/scan.c+7 -30 replies
5/5ACPI: sysfs: remove return value of acpi_device_setup_files()drivers/acpi/device_sysfs.c drivers/acpi/internal.h drivers/acpi/scan.c+3 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] ACPI: sysfs: manage sysfs attributes through device core

Simplify the lifecycle of the sysfs attributes by letting the device core manage them.

---
Changes in v2:
- Add fix to validate buffer type validation (patch 1)
- Drop usage of devm-APIs as these are unusable for unbound devices
- Evaluate _STR on each sysfs access
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Thomas Weißschuh (5):
ACPI: sysfs: validate return type of _STR method
ACPI: sysfs: evaluate _STR on each sysfs access
ACPI: sysfs: manage attributes as attribute_group
ACPI: sysfs: manage sysfs attributes through device core
ACPI: sysfs: remove return value of acpi_device_setup_files()

 drivers/acpi/device_sysfs.c | 196 +++++++++++++++++++-------------------------
 drivers/acpi/internal.h     |   3 +-
 drivers/acpi/scan.c         |   6 +-
 include/acpi/acpi_bus.h     |   1 -
 4 files changed, 89 insertions(+), 117 deletions(-)

---
base-commit: 34afb82a3c67f869267a26f593b6f8fc6bf35905
change-id: 20240609-acpi-sysfs-groups-cfa756d16752

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>