Re: [PATCH] pmdomain: rockchip: fix warning when deferring probe
From: Alexis Lothoré
Date: Thu Nov 26 2026 - 08:36:38 EST
Hi Ulf,
On Thu Nov 26, 2026 at 1:43 PM CET, Ulf Hansson wrote:
> On Sun, Nov 22, 2026 at 2:38 PM Alexis Lothoré
> <alexis.lothore@xxxxxxxxxxx> wrote:
[...]
>> Fixes: d8b384777066 ("pmdomain: rockchip: fix clock leak on domain probe failure")
>> Signed-off-by: Alexis Lothoré <alexis.lothore@xxxxxxxxxxx>
>
> I have already queued a patch for this at my fixes branch:
> c671660ea0af pmdomain: rockchip: Only put clocks that have been
> successfully obtained
>
> If that isn't sufficient, please re-spin the $subject patch.
I've searched lore before posting my patch, but not well enough
apparently ;) Sorry for the noise then.
Alexis
>
> Kind regards
> Uffe
>
>> ---
>> drivers/pmdomain/rockchip/pm-domains.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c
>> index e193f978d5f3..adc3bebcd928 100644
>> --- a/drivers/pmdomain/rockchip/pm-domains.c
>> +++ b/drivers/pmdomain/rockchip/pm-domains.c
>> @@ -854,6 +854,7 @@ static int rockchip_pm_add_one_domain(struct rockchip_pmu *pmu,
>> dev_err(pmu->dev,
>> "%pOFn: failed to get clk at index %d: %d\n",
>> node, i, error);
>> + pd->num_clks = i;
>> goto err_put_clocks;
>> }
>> }
>>
>> ---
>> base-commit: 988117cc1bb17338c586a4e21ade88b5397eac33
>> change-id: 20261122-rockchip-pm-defer-adb33313f110
>>
>> Best regards,
>> --
>> Alexis Lothoré <alexis.lothore@xxxxxxxxxxx>
>>
--
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com