Re: [PATCH] driver: probe: report power domain attach failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 30, 2022 at 11:49:55AM +0200, Ahmad Fatoum wrote:
> Power domains are attached before driver probe and non-existence of
> power domain driver leads to permanent probe deferral without any
> pointer as to why. Add a status message to make debugging easier.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
> ---
>  drivers/base/platform.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha

> 
> diff --git a/drivers/base/platform.c b/drivers/base/platform.c
> index 2fb73917b43c..c0ea2746b388 100644
> --- a/drivers/base/platform.c
> +++ b/drivers/base/platform.c
> @@ -17,7 +17,7 @@ static int platform_probe(struct device_d *dev)
>  
>  	ret = genpd_dev_pm_attach(dev);
>  	if (ret < 0)
> -		return ret;
> +		return dev_err_probe(dev, ret, "power domain attach failed\n");
>  
>  	return dev->driver->probe(dev);
>  }
> -- 
> 2.30.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux