Skip to content

ACPI: Rework acpi_bus_trim()

Rafael J. Wysocki linux-acpi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ACPI: Remove the ops field from struct acpi_deviceinclude/acpi/acpi_bus.h+0 -10 replies
2/5ACPI / scan: Drop the second argument of acpi_device_unregister()drivers/acpi/scan.c+3 -30 replies
3/5ACPI / scan: Drop the second argument of acpi_bus_trim()drivers/acpi/dock.c drivers/acpi/scan.c drivers/pci/hotplug/acpiphp_glue.c +2 more+9 -170 replies
4/5ACPI / scan: Change the implementation of acpi_bus_trim()drivers/acpi/scan.c+11 -490 replies
5/5ACPI / scan: Add second pass to acpi_bus_trim()drivers/acpi/scan.c+28 -162 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchToshi KaniYasuaki Ishimatsu
SeriesA-b
1/5
2/5
3/5
4/5
5/5A-b

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

Read the v1 thread

Cover letter [PATCH 0/5] ACPI: Rework acpi_bus_trim()

Hi All,

This series of patches changes the way acpi_bus_trim() works so that, eventually, it walks the namespace twice detaching (ACPI) drivers from device nodes being removed in the first pass and removing the device nodes in the second pass.

The first two patches are just cleanups removing unused stuff:

[1/5] Remove the ops field from struct acpi_device (unrelated to the rest). [2/5] Drop the second argument of acpi_device_unregister().

The next three patches actually rework acpi_bus_trim() in three steps:

[3/5] Drop the second argument of acpi_bus_trim() (all callers pass 1 in there
anyway.
[4/5] Reimplement acpi_bus_trim() using acpi_walk_namespace(). [3/5] Make acpi_bus_trim() carry out two passes as described above.

I'm aware of the fact that this will conflict with the patches that Yinghai posted a few days ago, but in my opinion the changes here are prerequisite for the Yinghai's patchset.

Thanks,
Rafael

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.