summaryrefslogtreecommitdiff
path: root/drivers/soc/tegra/common.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2022-06-24 05:58:56 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2022-07-08 11:27:33 +0530
commita6db3b92323a0005b8685864be74262729780d5e (patch)
treef0086250a4fc03bcd3a5d3d77705e778d9b91786 /drivers/soc/tegra/common.c
parentd8c32d3971e4c4f9e81c28031c46b755c17192d2 (diff)
downloadlinux-a6db3b92323a0005b8685864be74262729780d5e.tar.gz
soc/tegra: Add comment over devm_pm_opp_set_clkname()
Explain why special handling was required here, it isn't obvious at all. Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/soc/tegra/common.c')
-rw-r--r--drivers/soc/tegra/common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c
index 32c346b72635..9f3fdeb1a11c 100644
--- a/drivers/soc/tegra/common.c
+++ b/drivers/soc/tegra/common.c
@@ -108,6 +108,13 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
u32 hw_version;
int err;
+ /*
+ * For some devices we don't have any OPP table in the DT, and in order
+ * to use the same code path for all the devices, we create a dummy OPP
+ * table for them via this call. The dummy OPP table is only capable of
+ * doing clk_set_rate() on invocation of dev_pm_opp_set_rate() and
+ * doesn't provide any other functionality.
+ */
err = devm_pm_opp_set_clkname(dev, NULL);
if (err) {
dev_err(dev, "failed to set OPP clk: %d\n", err);