memory: tegra: Correct debugfs clk rate-range on Tegra30
authorDmitry Osipenko <digetx@gmail.com>
Mon, 24 Feb 2020 23:58:35 +0000 (02:58 +0300)
committerThierry Reding <treding@nvidia.com>
Wed, 11 Mar 2020 14:24:16 +0000 (15:24 +0100)
commita53670e1a734ba56fac84cf2b93b838bd4a6b835
tree3a11fb4b1dce3c3c2820d4921aa7483ea17d290a
parent2243af41115d0e36e6414df6dd2a0386e022d9f8
memory: tegra: Correct debugfs clk rate-range on Tegra30

Correctly set clk rate-range if number of available timings is zero.
This fixes noisy "invalid range [4294967295, 0]" error messages during
boot.

Fixes: 8cee32b40040 ("memory: tegra: Implement EMC debugfs interface on Tegra30")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/tegra30-emc.c