From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! pmdomain: add Rockchip power domain support
Date: Tue, 2 Dec 2025 17:32:52 +0100 [thread overview]
Message-ID: <20251202163253.1554775-1-a.fatoum@pengutronix.de> (raw)
pmdomain: rockchip: skip skipping message when nothing skipped
if ngpd == 0, there are no subdomains and there was nothing skipped, so
suppress the message in that case.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/pmdomain/rockchip/pm-domains.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/pmdomain/rockchip/pm-domains.c b/drivers/pmdomain/rockchip/pm-domains.c
index debe36a175c4..a30ff8fb22af 100644
--- a/drivers/pmdomain/rockchip/pm-domains.c
+++ b/drivers/pmdomain/rockchip/pm-domains.c
@@ -864,8 +864,9 @@ static int rockchip_pm_add_subdomain(struct rockchip_pmu *pmu,
* TODO: implement pm_genpd_add_subdomain() support for barebox.
* Until we need to, just let the user know about it
*/
- dev_info(pmu->dev, "%s: skipping %u nested power domains\n",
- parent->name, ngpd);
+ if (ngpd)
+ dev_info(pmu->dev, "%s: skipping %u nested power domains\n",
+ parent->name, ngpd);
return 0;
}
--
2.47.3
next reply other threads:[~2025-12-02 16:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-02 16:32 Ahmad Fatoum [this message]
2025-12-03 8:46 ` Sascha Hauer
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=20251202163253.1554775-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--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