Re: [PATCH 1/4] firmware: psci: switch SYSTEM_OFF to sys-off handler API

From: Thierry Reding

Date: Thu May 28 2026 - 17:05:18 EST


On Thu, May 14, 2026 at 04:47:19PM +0200, Diogo Ivo wrote:
> Replace the legacy pm_power_off hook with the generic sys-off
> handler infrastructure.
>
> Convert psci_sys_poweroff() to the sys-off callback prototype and
> register it through register_sys_off_handler() with firmware
> priority. This removes the direct dependency on pm_power_off and
> drops the now-unused <linux/pm.h> include.
>
> This aligns the PSCI poweroff path with the modern system-off
> framework used by other firmware and platform drivers.
>
> Signed-off-by: Diogo Ivo <diogo.ivo@xxxxxxxxxxxxxxxxxx>
> ---
> drivers/firmware/psci/psci.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)

Reviewed-by: Thierry Reding <treding@xxxxxxxxxx>

Attachment: signature.asc
Description: PGP signature