[PATCH 1/4] pmdomain: rockchip: propagate subdomain add errors
Sebastian Reichel
sebastian.reichel at collabora.com
Fri Sep 18 10:18:08 PDT 2026
Hi,
On Fri, Sep 18, 2026 at 08:07:35PM +0800, Shawn Lin wrote:
> rockchip_pm_add_subdomain() ignored the return value of its recursive
> call, so a failure deeper in the hierarchy was silently dropped and
> probe still succeeded with an incomplete domain tree.
>
> Fixes: 6be05b5ec161 ("soc: rockchip: power-domain: add support for sub-power domains")
> Signed-off-by: Shawn Lin <shawn.lin at rock-chips.com>
> ---
Reviewed-by: Sebastian Reichel <sebastian.reichel at collabora.com>
Greetings,
-- Sebastian
> drivers/pmdomain/rockchip/pm-domains.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c
> index ba66ae7..068dd4b3 100644
> --- a/drivers/pmdomain/rockchip/pm-domains.c
> +++ b/drivers/pmdomain/rockchip/pm-domains.c
> @@ -1018,7 +1018,9 @@ static int rockchip_pm_add_subdomain(struct rockchip_pmu *pmu,
> parent_domain->name, child_domain->name);
> }
>
> - rockchip_pm_add_subdomain(pmu, np);
> + error = rockchip_pm_add_subdomain(pmu, np);
> + if (error)
> + return error;
> }
>
> return 0;
> --
> 2.7.4
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20260918/5fb7c1f5/attachment-0001.sig>
More information about the Linux-rockchip
mailing list