Skip to content

Commit 0bf0203

Browse files
Sibi Sankarstorulf
authored andcommitted
pmdomain: arm: Use FLAG_DEV_NAME_FW to ensure unique names
The domain attributes returned by the perf protocol can end up reporting identical names across domains, resulting in debugfs node creation failure. Use the GENPD_FLAG_DEV_NAME_FW to ensure the genpd providers end up with an unique name. Logs: [X1E reports 'NCC' for all its scmi perf domains] debugfs: Directory 'NCC' with parent 'pm_genpd' already present! debugfs: Directory 'NCC' with parent 'pm_genpd' already present! Reported-by: Johan Hovold <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Suggested-by: Ulf Hansson <[email protected]> Suggested-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Sibi Sankar <[email protected]> Cc: [email protected] Message-ID: <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 899f445 commit 0bf0203

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pmdomain/arm/scmi_perf_domain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ static int scmi_perf_domain_probe(struct scmi_device *sdev)
125125
scmi_pd->ph = ph;
126126
scmi_pd->genpd.name = scmi_pd->info->name;
127127
scmi_pd->genpd.flags = GENPD_FLAG_ALWAYS_ON |
128-
GENPD_FLAG_OPP_TABLE_FW;
128+
GENPD_FLAG_OPP_TABLE_FW |
129+
GENPD_FLAG_DEV_NAME_FW;
129130
scmi_pd->genpd.set_performance_state = scmi_pd_set_perf_state;
130131
scmi_pd->genpd.attach_dev = scmi_pd_attach_dev;
131132
scmi_pd->genpd.detach_dev = scmi_pd_detach_dev;

0 commit comments

Comments
 (0)