Re: [PATCH] pmdomain: arm: scmi_pm_domain: Initialize state as off
From: Sudeep Holla
Date: Mon Jan 13 2025 - 05:31:34 EST
On Fri, Jan 10, 2025 at 02:13:46PM +0800, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan@xxxxxxx>
>
> Per ARM SCMI Spec DEN0056E, page 16, "The platform may disable a resource
> if no agent has requested to use that resource."
>
True, but ...
> Linux Kernel should not rely on a state that it has not requested, so
> make state as off during initialization.
>
IIUC, this was done to avoid any transitions if the bootloader like U-Boot
has turned on the resource and OS can just rely on that stay. Anyways if
the resource is not used by any driver/device in the kernel, won't it be
turned off anyways ? What am I missing ?
I need to dig details, but I remember doing what this patch does and
reverting to what we have based on the feedback IIRC.
--
Regards,
Sudeep