]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci-of-at91: fix MMC_DDR_52 timing selection
authorLudovic Desroches <ludovic.desroches@microchip.com>
Tue, 28 Mar 2017 09:00:45 +0000 (11:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 07:35:06 +0000 (09:35 +0200)
commit79105a2f8146d0fed06513a61d50c82d83b55071
tree1ebe3e2a7b3d54a45f70bad6947fc2e44dfa7ded
parent41ece35ef4b4b44c96cd0cf299d509eb686e08a4
mmc: sdhci-of-at91: fix MMC_DDR_52 timing selection

commit d0918764c17b94c30bbb2619929b1719ff52707a upstream.

The controller has different timings for MMC_TIMING_UHS_DDR50 and
MMC_TIMING_MMC_DDR52. Configuring the controller with SDHCI_CTRL_UHS_DDR50,
when MMC_TIMING_MMC_DDR52 timings are requested, is not correct and can
lead to unexpected behavior.

Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Fixes: bb5f8ea4d514 ("mmc: sdhci-of-at91: introduce driver for the Atmel SDMMC")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-of-at91.c