Skip to content

ACPI: Battery hotplug support

Zhang Rui linux-acpi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI: flush kacpi_notify_wq before removing notify handlerdrivers/acpi/osl.c+1 -00 replies
2/4ACPI: introduce new acpi execute type for device hotplugdrivers/acpi/osl.c include/acpi/acpiosxf.h+20 -30 replies
3/4ACPI: add battery hotplug supportdrivers/acpi/bus.c drivers/acpi/scan.c include/acpi/acpi_bus.h+168 -150 replies
4/4ACPI: support ejecting device in userspacedrivers/acpi/scan.c+6 -120 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] ACPI: Battery hotplug support

Hi, all,

This patch series is for battery hotplug support. Please refer to http://bugzilla.kernel.org/show_bug.cgi?id=2884

Patch 01 flushes kacpi_notify_wq before removing the notify handler
as well as the kacpid_wq.
Patch 02 adds a new acpi execute type, OSL_DEVICE_HOTPLUG_HANDLER,
This is used for the device hotplug notify handler which will be queued in keventd_wq so that it can flush the kacpi_notify_wq.
Patch 03 support battery hotplug in the global system-level notify handler
acpi_bus_notify.
Patch 04 fix the deadlock when pokiing the "eject" sysfs attribute
which is used to eject a device in user space.

I've tested this patch set on my t43 laptop and it works well. Any comment is appreciated. :)

Thanks,
Rui