mmc: sdhci-cadence: override spec version
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 29 Aug 2019 10:49:28 +0000 (19:49 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000 (15:58 +0200)
commit12a632e60ae3d65c3348930c4e349f7ceb0606f3
tree3805941da3564de109a5f23414ab0d2deb35ecd3
parent8784edc8fa936a3906af3d6007c54e5ae4843f1a
mmc: sdhci-cadence: override spec version

The datasheet of the IP (sd4hc) says it is compiatible with SDHCI v4,
but the spec version field in the version register is read as 2
(i.e. SDHCI_SPEC_300) based on the RTL provided by Cadence.

Socionext did not fix it up when it integrated the IP into the SoCs.
So, it is working as SDHCI v3.

It is not a real problem because there is no difference in the program
flow in sdhci.c between SDHCI_SPEC_300/400, but set the real version
just in case.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-cadence.c