From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <ahmad@a3f.at>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] regulator: core: add debug print for regulator_resolve_supply
Date: Thu, 1 Jun 2023 08:51:53 +0200 [thread overview]
Message-ID: <20230601065153.GD18491@pengutronix.de> (raw)
In-Reply-To: <20230531062923.670941-1-ahmad@a3f.at>
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@a3f.at>
> ---
> 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 |
prev parent reply other threads:[~2023-06-01 6:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-31 6:29 Ahmad Fatoum
2023-06-01 6:51 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230601065153.GD18491@pengutronix.de \
--to=sha@pengutronix.de \
--cc=ahmad@a3f.at \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox