Skip to content

ACPI: cleanups for hotplug

Bjorn Helgaas linux-acpi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19ACPI: simplify deferred execution pathdrivers/acpi/osl.c+5 -180 replies
2/19ACPI: remove null pointer checks in deferred execution pathdrivers/acpi/osl.c+0 -90 replies
3/19ACPI: don't pass handle for fixed hardware notificationsdrivers/acpi/scan.c+2 -10 replies
4/19ACPI: add debug for device additiondrivers/acpi/scan.c+9 -20 replies
5/19ACPI: remove unused acpi_bus_scan_fixed() argumentdrivers/acpi/scan.c+2 -50 replies
6/19ACPI: remove redundant "handle" and "parent" argumentsdrivers/acpi/scan.c+12 -160 replies
7/19ACPI: save device_type in acpi_devicedrivers/acpi/scan.c include/acpi/acpi_bus.h+3 -10 replies
8/19ACPI: use device_type rather than comparing HIDdrivers/acpi/scan.c+4 -60 replies
9/19ACPI: remove acpi_device_set_context() "type" argumentdrivers/acpi/scan.c+15 -170 replies
10/19ACPI: remove redundant "type" argumentsdrivers/acpi/scan.c+7 -70 replies
11/19ACPI: remove unnecessary argument checkingdrivers/acpi/scan.c+2 -60 replies
12/19ACPI: add acpi_bus_get_parent() and remove "parent" argumentsdrivers/acpi/scan.c+37 -130 replies
13/19ACPI: convert acpi_bus_scan() to operate on an acpi_handledrivers/acpi/scan.c+17 -170 replies
14/19ACPI: enumerate namespace before adding functional fixed hardware devicesdrivers/acpi/scan.c+2 -20 replies
15/19ACPI: identify device tree root by null parent pointer, not ACPI_BUS_TYPEdrivers/acpi/scan.c include/acpi/acpi_bus.h+11 -81 reply
16/19ACPI: use acpi_walk_namespace() to enumerate devicesdrivers/acpi/scan.c+74 -1220 replies
17/19ACPI: add acpi_bus_get_status_handle()drivers/acpi/bus.c include/acpi/acpi_bus.h+24 -270 replies
18/19ACPI: factor out device type and status checkingdrivers/acpi/scan.c+52 -770 replies
19/19ACPI: handle re-enumeration, when acpi_devices might already existdrivers/acpi/scan.c+11 -80 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/19] ACPI: cleanups for hotplug

I'm working to make the Linux/ACPI code handle hotplug notification events. This should ultimately allow us to remove the existing hotplug code scattered through the ACPI device drivers.

This is a long series of cleanups that should cause no functional change, but will make it easier to call acpi_bus_scan() from the notification path.

Comments and testing reports welcome. Boot logs with CONFIG_ACPI_DEBUG=y and "acpi.debug_layer=0x00010000" will be helpful in debugging any issues.

---

Bjorn Helgaas (19):
ACPI: simplify deferred execution path
ACPI: remove null pointer checks in deferred execution path
ACPI: don't pass handle for fixed hardware notifications
ACPI: add debug for device addition
ACPI: remove unused acpi_bus_scan_fixed() argument
ACPI: remove redundant "handle" and "parent" arguments
ACPI: save device_type in acpi_device
ACPI: use device_type rather than comparing HID
ACPI: remove acpi_device_set_context() "type" argument
ACPI: remove redundant "type" arguments
ACPI: remove unnecessary argument checking
ACPI: add acpi_bus_get_parent() and remove "parent" arguments
ACPI: convert acpi_bus_scan() to operate on an acpi_handle
ACPI: enumerate namespace before adding functional fixed hardware devices
ACPI: identify device tree root by null parent pointer, not ACPI_BUS_TYPE
ACPI: use acpi_walk_namespace() to enumerate devices
ACPI: add acpi_bus_get_status_handle()
ACPI: factor out device type and status checking
ACPI: handle re-enumeration, when acpi_devices might already exist

 drivers/acpi/bus.c      |   49 ++---
 drivers/acpi/osl.c      |   32 +---
 drivers/acpi/scan.c     |  428 +++++++++++++++++++++--------------------------
 include/acpi/acpi_bus.h |    6 -
 4 files changed, 221 insertions(+), 294 deletions(-)
Signature · 1 line
Bjorn