OSDN Git Service

mmc: sdhci-msm: Improvise tuning to check the card status
authorSahitya Tummala <stummala@codeaurora.org>
Wed, 25 Feb 2015 08:54:52 +0000 (14:24 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Tue, 31 May 2016 22:27:06 +0000 (15:27 -0700)
commit7a14825b8e8e897b9f81107197b413ce09b298be
tree97c7d3ceada8740cdf0b0e618bd61befca1c2a40
parent2cfffa3bbe271f834b8b4d28332430eb809f7fc9
mmc: sdhci-msm: Improvise tuning to check the card status

Right now only certain amount of delay (146 MCLK cycles as per spec)
is given for card to return back to transfer state upon any CMD error
that host controller may receive. This delay seems to be insufficient
for certain eMMC cards like Hynix. This patch tries to send CMD13 and
also retry it with the same delay to make sure the card is back to
transfer state before sending next command. Otherwise we may see auto
cmd or illegal command failures to the read command sent right after
tuning, especially if the last tuning phase has failed.

Change-Id: I3ec2da150dc5ee656b8156040bf539812b0e4d2b
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Signed-off-by: Pavan Anamula <pavana@codeaurora.org>
[subhashj@codeaurora.org: fixed trivial conflicts]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
drivers/mmc/host/sdhci-msm.c