Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af146037 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: sdhci: Fix command response INDEX/END bit error handling"

parents 8533fecc 72279ee4
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -2857,10 +2857,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;
		}