]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
OPP: debugfs: Use performance level if available to distinguish between rates
authorManivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Fri, 30 Jan 2026 07:19:40 +0000 (12:49 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Feb 2026 04:55:46 +0000 (10:25 +0530)
commite560083c0467f86b72aecac377b27bd1e7d16c49
tree1cd959fd334eefc6f2e12848bb8164991b4caa0b
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
OPP: debugfs: Use performance level if available to distinguish between rates

Some OPP tables have entries with same rate and different performance
level. For these entries, using only the rate as the debugfs directory name
causes below error:

debugfs: 'opp:5000000' already exists in 'soc@0-1c00000.pci'

Fix it by appending the performance level to the dir name if available.

Reported-by: Bjorn Andersson <andersson@kernel.org>
Closes: https://lore.kernel.org/linux-arm-msm/75lzykd37zdvrks5i2bb4zb2yzjtm25kv3hegmikndkbr772mz@w2ykff3ny45u/
Fixes: 05db35963eef ("OPP: Add support to find OPP for a set of keys")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/debugfs.c