mirror of https://gitee.com/openkylin/linux.git
memory: tegra: Correct debugfs clk rate-range on Tegra124
Correctly set clk rate-range if number of available timings is zero.
This fixes noisy "invalid range [4294967295, 0]" error messages during
boot.
Fixes: 6b9acd9355
("memory: tegra: Refashion EMC debugfs interface on Tegra124")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
a53670e1a7
commit
141267bffd
|
@ -1158,6 +1158,11 @@ static void emc_debugfs_init(struct device *dev, struct tegra_emc *emc)
|
|||
emc->debugfs.max_rate = emc->timings[i].rate;
|
||||
}
|
||||
|
||||
if (!emc->num_timings) {
|
||||
emc->debugfs.min_rate = clk_get_rate(emc->clk);
|
||||
emc->debugfs.max_rate = emc->debugfs.min_rate;
|
||||
}
|
||||
|
||||
err = clk_set_rate_range(emc->clk, emc->debugfs.min_rate,
|
||||
emc->debugfs.max_rate);
|
||||
if (err < 0) {
|
||||
|
|
Loading…
Reference in New Issue