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>
Loading
Please register or sign in to comment