[PATCH v2 0/5] ACPI: Replace acpi_get_first_physical_node() with acpi_bus_get_primary_device()

From: Rafael J. Wysocki

Date: Wed Sep 30 2026 - 15:20:40 EST


Hi All,

This is a partial resend of

https://lore.kernel.org/linux-acpi/7995179.EvYhyI6sBW@rafael.j.wysocki/

that only includes patches that have not been ACKed and the last one that
depends on all of the others. It is based on linux-next.

This series replaces acpi_get_first_physical_node(), which is inherently racy
and therefore generally unsafe to use, with acpi_bus_get_primary_device(), that
doesn't have this problem, everywhere in the code.

I will appreciate ACKs from maintainers of the code updated by the patches, so
I can pick them up and get rid of the problematic interface in one go.

Thanks!