OSDN Git Service

mmc: sdhci-msm: fix issue with tuning command
authorSahitya Tummala <stummala@codeaurora.org>
Wed, 12 Mar 2014 10:57:32 +0000 (16:27 +0530)
committerSubhash Jadavani <subhashj@codeaurora.org>
Fri, 27 May 2016 17:29:04 +0000 (10:29 -0700)
commit1eb54465509ed12c1684dd107971fffddfb7ca3b
treeee108d65edea897ced329ac1b86ae63cf54f2dc9
parentb0d11d554caef0ad130fd5d92187d0d8ea14aaff
mmc: sdhci-msm: fix issue with tuning command

As of now we ignore CRC/INDEX command failures to tuning command
and still wait for data from card but in case the card did not
receive the command, it won't send the data. This is causing
software request timeout for tuning commands. Hence, software
must not ignore such cmd errors for tuning commands but end the
request immediately after resetting the controller for both CMD
and DATA. Also, wait for 146 MCLK cycles for card to send out the
data and thus to move to transfer state. Its corresponding phase must
also be considered as bad phase.

CRs-fixed: 625855
Change-Id: Ic8462dd9c67e4f18a3ce73d972591772be8c6d10
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
[subhashj@codeaurora.org: fixed minor merge conflict]
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
drivers/mmc/host/sdhci-msm.c
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h