]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-tegra: Fix switch to HS400ES mode
authorPrathamesh Shete <pshete@nvidia.com>
Tue, 14 Dec 2021 11:36:53 +0000 (17:06 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 14 Dec 2021 12:33:10 +0000 (13:33 +0100)
commit086d9ed71f334b4f8fa2d485ab4ac66db6166a12
treec7d7e38730ab23ccd7d71de6df8ed3014d4194f9
parentc218e0b6cbbdf0307713783ed79056cea7414e80
mmc: sdhci-tegra: Fix switch to HS400ES mode

When CMD13 is sent after switching to HS400ES mode, the bus
is operating at either MMC_HIGH_26_MAX_DTR or MMC_HIGH_52_MAX_DTR.
To meet Tegra SDHCI requirement at HS400ES mode, force SDHCI
interface clock to MMC_HS200_MAX_DTR (200 MHz) so that host
controller CAR clock and the interface clock are rate matched.

Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: 436fe0be1057 ("mmc: tegra: Implement HS400 enhanced strobe")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211214113653.4631-1-pshete@nvidia.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-tegra.c