]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-cadence: send tune request twice to work around errata
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 27 Mar 2018 09:29:53 +0000 (18:29 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:38 +0000 (15:08 +0200)
commitfde44d6321048c4ffa372b3bebad24009954b87d
treed76bb7284378f4d4fa25cc19706155c26976e020
parent685f44ab7abf48d693ee78adb1e47b8afe485055
mmc: sdhci-cadence: send tune request twice to work around errata

Cadence sent out an errata report to their customers of this IP.
This errata is not so severe, but the tune request should be sent
twice to avoid the potential issue.

Quote from the report:

Problem Summary
---------------
The IP6116 SD/eMMC PHY design has a timing issue on receive data path.
This issue may lead to an incorrect values of read/write pointers of
the synchronization FIFO. Such a situation can happen at the SDR104
and HS200 tuning procedure when the PHY is requested to change a phase
of sampling clock when moving to the next tuning iteration.

Workarounds
-----------
The following are valid workarounds to resolve the issue:

1. In eMMC mode, software sends tune request twice instead of once at
   each iteration. This means that the clock phase is not changed on
   the second request so there is no potential for clock instability.
2. In SD mode, software must not use the hardware tuning and instead
   perform an almost identical procedure to eMMC, using the HRS34 Tune
   Force register.

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