mmc: sdhci-of-esdhc: update tuning erratum A-008171
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 12 Dec 2019 07:52:19 +0000 (15:52 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 16 Jan 2020 10:45:54 +0000 (11:45 +0100)
commit5b742232d707dd7f3da493b0ac54fe44ddfb4cb8
tree8a15494b43107fa91b8b7a10f61ac18394aba6fa
parentf3c2082508c0704673ba7dfcd424f2ac225cfbfd
mmc: sdhci-of-esdhc: update tuning erratum A-008171

There is an official update for eSDHC tuning erratum A-008171.
This patch is to implement the changes,
- Affect all revisions of SoC.
- Changes for tuning window checking.
- Hardware hits a new condition that tuning succeeds although
  the eSDHC might not have tuned properly for type2 SoCs
  (soc_tuning_erratum_type2[] array in driver). So check
  tuning window after tuning succeeds.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20191212075219.48625-2-yangbo.lu@nxp.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-esdhc.c