mmc: sdhci: Fix command response INDEX/END bit error handling
In addition to patch 71fcbda0fcddd0 (mmc: sdhci: fix command response CRC error handling), cmd INDEX and END bit error also needs to handle the same way as in mentioned patch. So adding cmd index and end bit error case to it. Change-Id: I6671bb51259515acb0733ce65be8084716d3bfbf Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org>
This commit is contained in:
parent
88e55dd551
commit
9e6175fca8
1 changed files with 5 additions and 2 deletions
|
@ -2830,10 +2830,13 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask, u32 *mask)
|
|||
* If the card did not receive the command or returned an
|
||||
* error which prevented it sending data, the data phase
|
||||
* will time out.
|
||||
*
|
||||
* Even in case of cmd INDEX OR ENDBIT error we
|
||||
* handle it the same way.
|
||||
*/
|
||||
if (host->cmd->data &&
|
||||
(intmask & (SDHCI_INT_CRC | SDHCI_INT_TIMEOUT)) ==
|
||||
SDHCI_INT_CRC) {
|
||||
(((intmask & (SDHCI_INT_CRC | SDHCI_INT_TIMEOUT)) ==
|
||||
SDHCI_INT_CRC) || (host->cmd->error == -EILSEQ))) {
|
||||
host->cmd = NULL;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue