Re: [PATCH] regulator: core: add debug print for regulator_resolve_supply

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

 



On Wed, May 31, 2023 at 08:29:23AM +0200, Ahmad Fatoum wrote:
> Starting with commit 324bd9bbe7e8 ("regulator: recursively enable/disable
> regulator dependency tree"), regulator operations may affect more than
> just the one regulator being enabled. Place a debug print, so it's
> easier to follow the dependency chain.
> 
> Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx>
> ---
>  drivers/regulator/core.c | 2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks

Sascha

> 
> diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
> index 42774a561ce5..f914641c8777 100644
> --- a/drivers/regulator/core.c
> +++ b/drivers/regulator/core.c
> @@ -141,6 +141,8 @@ static int regulator_resolve_supply(struct regulator_dev *rdev)
>  	if (!supply_name)
>  		return 0;
>  
> +	dev_dbg(rdev->dev, "resolving %s\n", supply_name);
> +
>  	supply = regulator_get(rdev->dev, supply_name);
>  	if (IS_ERR(supply)) {
>  		if (deep_probe_is_supported())
> -- 
> 2.38.5
> 
> 
> 

-- 
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