Skip to contentSkip to conversation

pmdomain: arm: Add print after a successful probe for SCMI power domains

PATCH In review Ulf Hansson 3 participants 4 messages Mar 4

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pmdomain: arm: Add print after a successful probe for SCMI power domains

It can be discussed how useful a print is after a successful probe. In the SCMI power domain case it's seems valuable, as it let us inform about the number of initialized power domains too, which is fetched from firmware.

Therefore, let's add a print about this, which also aligns with the behaviour of the SCMI perf domain driver.

---
 drivers/pmdomain/arm/scmi_pm_domain.c | 1 +
 1 file changed, 1 insertion(+)
drivers/pmdomain/arm/scmi_pm_domain.c +1 -0
index b5e2ffd5ea64..5454faed7d5d 100644
@@ -113,6 +113,7 @@ static int scmi_pm_domain_probe(struct scmi_device *sdev)
 		goto err_rm_genpds;
 
 	dev_set_drvdata(dev, scmi_pd_data);
+	dev_info(dev, "Initialized %d power domains", num_domains);
 
 	return 0;
 err_rm_genpds:
Signature · 1 line
2.43.0
#1 lore raw
Quoted 3 lines · Ulf Hansson

It can be discussed how useful a print is after a successful probe. In the SCMI power domain case it's seems valuable, as it let us inform about the number of initialized power domains too, which is fetched from firmware.

Hi,

yes indeed we tend to print such 'summary' info at the end of a successful probe in other SCMI drivers.

LGTM.

Thanks,
Cristian

#2 lore raw
Quoted 6 lines · Cristian Marussi
Quoted 3 lines · Ulf Hansson

It can be discussed how useful a print is after a successful probe. In the SCMI power domain case it's seems valuable, as it let us inform about the number of initialized power domains too, which is fetched from firmware.

Quoted 7 lines

Hi,

yes indeed we tend to print such 'summary' info at the end of a successful probe in other SCMI drivers.

LGTM.

Thanks! I have queued this up for v7.1.

Kind regards
Uffe

maintainer Acked-by on v1 1/1
#3 lore raw
In reply to Ulf Hansson
Quoted 7 lines · Ulf Hansson

It can be discussed how useful a print is after a successful probe. In the SCMI power domain case it's seems valuable, as it let us inform about the number of initialized power domains too, which is fetched from firmware.

Therefore, let's add a print about this, which also aligns with the behaviour of the SCMI perf domain driver.

I always assumed it was already there as dev_debug() but I am wrong.

Signature · 2 lines
Regards,
Sudeep