]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: tegra: Add and use tegra_sdhci_get_max_clock()
authorAapo Vienamo <avienamo@nvidia.com>
Fri, 13 Jul 2018 13:17:45 +0000 (16:17 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Jul 2018 09:58:38 +0000 (11:58 +0200)
commit44350993d01c901cc201ef2663fd0fded2e03d06
treeb563558c12c433d2f293ff1a7656a2a2077f174a
parent8312b97c7c08bd0fc489ee5db809dee9102a289f
mmc: tegra: Add and use tegra_sdhci_get_max_clock()

Implement and use tegra_sdhci_get_max_clock() which returns the true
maximum host clock rate. The issue with tegra_sdhci_get_max_clock() is
that it returns the current clock rate of the host instead of the
maximum one, which can lead to unnecessarily small clock rates.

This differs from the previous implementation of
tegra_sdhci_get_max_clock() in that it doesn't divide the result by two.

Signed-off-by: Aapo Vienamo <avienamo@nvidia.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-tegra.c