]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-cadence: set SDHCI_QUIRK2_PRESET_VALUE_BROKEN for UniPhier
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 12 Mar 2020 10:42:57 +0000 (19:42 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 17 Mar 2020 11:25:29 +0000 (12:25 +0100)
commit28f9236dc6d6f97ac912f003fc8785bb9dd6a3f0
tree671f69b2b21cfba2d98dc0d168517d17eaf6a62e
parent94409476b123a0c35fdc54ee1573461b1be32561
mmc: sdhci-cadence: set SDHCI_QUIRK2_PRESET_VALUE_BROKEN for UniPhier

The SDHCI_PRESET_FOR_* registers are not set for the UniPhier platform
integration. (They are all read as zeros).

Set the SDHCI_QUIRK2_PRESET_VALUE_BROKEN quirk flag. Otherwise, the
High Speed DDR mode on the eMMC controller (MMC_TIMING_MMC_DDR52)
would not work.

I split the platform data to give no impact to other platforms,
although the UniPhier platform is currently only the upstream user
of this IP.

The SDHCI_QUIRK2_PRESET_VALUE_BROKEN flag is set if the compatible
string matches to "socionext,uniphier-sd4hc".

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200312104257.21017-1-yamada.masahiro@socionext.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c