Re: [PATCH] firmware: arm_scpi: publish scpi_ops with release semantics

From: Sudeep Holla

Date: Fri Oct 16 2026 - 13:27:27 EST


On Mon, Sep 21, 2026 at 09:06:04PM -0400, Jaidev Shastri via B4 Relay wrote:
> From: Jaidev Shastri <jaidevshastri@xxxxxx>
>
> scpi_probe() stores scpi_info early because scpi_init_versions() sends
> messages through it, and sets scpi_drvinfo->scpi_ops as its last step.
> get_scpi_ops() returns scpi_info->scpi_ops, so the ops pointer is the
> gate that scpi-cpufreq, scpi_pm_domain, clk-scpi and scpi-hwmon test
> before they use the driver.
>

None of these can be probed through the drivers are initialised until
the devm_of_platform_populate() after the scpi_drvinfo->scpi_ops is set.

--
Regards,
Sudeep