Skip to content

ACPI / scan: Two fixes for device hot-removal

Rafael J. Wysocki linux-acpi lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

PatchToshi Kani
SeriesA-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/2] ACPI / scan: Two fixes for device hot-removal

Hi,

The following two patches fix issues I've found revently in the ACPI device hot-removal code.

Patch [1/2] makes acpi_bus_hot_remove_device() hold acpi_scan_lock around the whole removal procedure to prevent potential race condition between acpi_bus_scan() and a conflicting evaluation of _EJ0 from happening.

Patch [2/2] makes acpi_device_unregister() put devices (supporting that) into D3cold to prevent potential problems with removing power from them without preparation from happening and removes the totally wrong evaluation of _PS3 from acpi_bus_hot_remove_device().

Thanks,
Rafael

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