pmdomain: arm: Add print after a successful probe for SCMI power domains
Subsystems (2)
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
@@ -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
Cristian Marussi
reviewerQuoted 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
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.
Review-by Cristian Marussi <[email protected]>
Thanks! I have queued this up for v7.1.
Kind regards
Uffe
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