diff options
| author | Shawn Lin <shawn.lin@rock-chips.com> | 2026-09-21 14:52:50 +0800 |
|---|---|---|
| committer | Ulf Hansson <ulfh@kernel.org> | 2026-09-28 15:35:21 +0200 |
| commit | 4c0d69d677cf5b0065ebbb3ceb8ba66fddbec630 (patch) | |
| tree | d1787930f6aad962959550a09f25ac2a9d455a5c | |
| parent | 51c2db3ef0cb89a49ab7f47a40efd5d5b074ce8d (diff) | |
pmdomain: rockchip: propagate subdomain add errors
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@rock-chips.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
| -rw-r--r-- | drivers/pmdomain/rockchip/pm-domains.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c index ba66ae719428..068dd4b3705e 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; |
