]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: tegra30: Check whether clk_round_rate() returns zero rate
authorDmitry Osipenko <digetx@gmail.com>
Mon, 20 Sep 2021 17:22:49 +0000 (20:22 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 5 Oct 2021 04:24:39 +0000 (09:54 +0530)
commit878f69c2add4a4411a3f4ca0b74d6a67126a5e04
treec821575f99ac813fbcf890154f9bafe4237b12a5
parent00252c312261717eb3df4957aab67f7c0643b4d8
PM / devfreq: tegra30: Check whether clk_round_rate() returns zero rate

EMC clock is always-on and can't be zero. Check whether clk_round_rate()
returns zero rate and error out if it does. It can return zero if clock
tree isn't initialized properly.

Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/devfreq/tegra30-devfreq.c