Revert "mmc: sdhci: Fix incorrect switch to HS mode"
PATCH 1/1 Revert "mmc: sdhci: Fix incorrect switch to HS mode"
This reverts commit c894e33ddc1910e14d6f2a2016f60ab613fd8b37.
This commit aims to treat SD High speed and SDR25 as the same while setting UHS Timings in HOST_CONTROL2 which leads to failures with some SD cards in AM65x. Revert this commit.
The issue this commit was trying to fix can be implemented in a platform specific callback instead of common sdhci code.
--- drivers/mmc/host/sdhci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/mmc/host/sdhci.c +1 -3
@@ -1882,9 +1882,7 @@ void sdhci_set_uhs_signaling(struct sdhci_host *host, unsigned timing) ctrl_2 |=SDHCI_CTRL_UHS_SDR104 ; else if (timing == MMC_TIMING_UHS_SDR12) ctrl_2 |= SDHCI_CTRL_UHS_SDR12; - else if (timing == MMC_TIMING_SD_HS || - timing == MMC_TIMING_MMC_HS || - timing == MMC_TIMING_UHS_SDR25) + else if (timing == MMC_TIMING_UHS_SDR25) ctrl_2 |= SDHCI_CTRL_UHS_SDR25; else if (timing == MMC_TIMING_UHS_SDR50) ctrl_2 |= SDHCI_CTRL_UHS_SDR50;
Signature · 1 line
2.19.2
Quoted 11 lines · Faiz Abbas
This reverts commit
c894e33ddc1910e14d6f2a2016f60ab613fd8b37.This commit aims to treat SD High speed and SDR25 as the same while setting UHS Timings in
HOST_CONTROL2which leads to failures with some SD cards in AM65x. Revert this commit.The issue this commit was trying to fix can be implemented in a platform specific callback instead of common sdhci code.
Cc <[email protected]>Signed-off-by Faiz Abbas <[email protected]>
Quoted 20 lines
--- drivers/mmc/host/sdhci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/mmc/host/sdhci.c +1
-3@@ -1882,9 +1882,7 @@ void sdhci_set_uhs_signaling(struct sdhci_host *host, unsigned timing) ctrl_2 |=SDHCI_CTRL_UHS_SDR104 ; else if (timing == MMC_TIMING_UHS_SDR12) ctrl_2 |= SDHCI_CTRL_UHS_SDR12; - else if (timing == MMC_TIMING_SD_HS || - timing == MMC_TIMING_MMC_HS || - timing == MMC_TIMING_UHS_SDR25) + else if (timing == MMC_TIMING_UHS_SDR25) ctrl_2 |= SDHCI_CTRL_UHS_SDR25; else if (timing == MMC_TIMING_UHS_SDR50) ctrl_2 |= SDHCI_CTRL_UHS_SDR50;
Quoted 7 lines · Faiz Abbas
This reverts commit
c894e33ddc1910e14d6f2a2016f60ab613fd8b37.This commit aims to treat SD High speed and SDR25 as the same while setting UHS Timings in
HOST_CONTROL2which leads to failures with some SD cards in AM65x. Revert this commit.
Quoted 5 lines
The issue this commit was trying to fix can be implemented in a platform specific callback instead of common sdhci code.
Cc <[email protected]>Signed-off-by Faiz Abbas <[email protected]>
Applied for fixes, thanks!
Kind regards
Uffe
Quoted 22 lines
--- drivers/mmc/host/sdhci.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/mmc/host/sdhci.c +1
-4@@ -1882,9 +1882,7 @@ void sdhci_set_uhs_signaling(struct sdhci_host *host, unsigned timing) ctrl_2 |=SDHCI_CTRL_UHS_SDR104 ; else if (timing == MMC_TIMING_UHS_SDR12) ctrl_2 |= SDHCI_CTRL_UHS_SDR12; - else if (timing == MMC_TIMING_SD_HS || - timing == MMC_TIMING_MMC_HS || - timing == MMC_TIMING_UHS_SDR25) + else if (timing == MMC_TIMING_UHS_SDR25) ctrl_2 |= SDHCI_CTRL_UHS_SDR25; else if (timing == MMC_TIMING_UHS_SDR50) ctrl_2 |= SDHCI_CTRL_UHS_SDR50; --2.19.2