Re: [PATCH v2] soc: qcom: rpmh-rsc: manage PM notifiers with devres
From: Konrad Dybcio
Date: Tue Jun 23 2026 - 07:07:54 EST
On 6/23/26 3:55 AM, Pengpeng Hou wrote:
> rpmh_rsc_probe() registers CPU PM or genpd notifiers before populating
> child devices. If child population fails, the CPU PM notifier path is not
> unwound and the genpd path needs open-coded cleanup.
>
> Use devm_pm_runtime_enable() for the genpd path and
> devm_add_action_or_reset() for both notifier registrations. This makes
> probe failure and driver detach use the same cleanup model while keeping
> devm_of_platform_populate() responsible for child devices.
>
> Fixes: 25092e6100ac ("soc: qcom: rpmh-rsc: Attach RSC to cluster PM domain")
> Signed-off-by: Pengpeng Hou <pengpeng@xxxxxxxxxxx>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad