[PATCH] pmdomain: rockchip: quiet regulator error on -EPROBE_DEFER

Shawn Lin shawn.lin at rock-chips.com
Wed Nov 19 16:34:11 PST 2025


在 2025/11/20 星期四 0:12, Chris Morgan 写道:
> From: Chris Morgan <macromorgan at hotmail.com>
> 
> Change the dev_err() to dev_err_probe() under rockchip_pd_power_on()
> to prevent errors early in the boot process when the requested
> regulator is not yet available. This converts errors like the following
> to debug messages:
> 
> rockchip-pm-domain fd8d8000.power-management:power-controller: Failed to enable supply: -517
> 
> Signed-off-by: Chris Morgan <macromorgan at hotmail.com>
> ---
>   drivers/pmdomain/rockchip/pm-domains.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c
> index 1955c6d453e4..3c84a65de1a5 100644
> --- a/drivers/pmdomain/rockchip/pm-domains.c
> +++ b/drivers/pmdomain/rockchip/pm-domains.c
> @@ -688,7 +688,8 @@ static int rockchip_pd_power_on(struct generic_pm_domain *domain)
>   
>   	ret = rockchip_pd_regulator_enable(pd);
>   	if (ret) {
> -		dev_err(pd->pmu->dev, "Failed to enable supply: %d\n", ret);
> +		dev_err_probe(pd->pmu->dev, ret,
> +			      "Failed to enable supply: %d\n", ret);
>   		return ret;

return dev_err_probe(pd->pmu->dev, ret, "Failed to enable supply: %d\n", 
ret); ?

>   	}
>   




More information about the Linux-rockchip mailing list