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

Commit 11d3c272 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: Add logs when ignoring timeout due to quirk"

parents 089591bd fb06c01f
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -3001,11 +3001,6 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask)
		 * above in sdhci_cmd_irq().
		 */
		if (host->cmd && (host->cmd->flags & MMC_RSP_BUSY)) {
			if (intmask & SDHCI_INT_DATA_TIMEOUT) {
				host->cmd->error = -ETIMEDOUT;
				tasklet_schedule(&host->finish_tasklet);
				return;
			}
			if (intmask & SDHCI_INT_DATA_END) {
				/*
				 * Some cards handle busy-end interrupt
@@ -3019,9 +3014,21 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask)
				return;
			}
			if (host->quirks2 &
				SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD)
				SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD) {
				pr_err_ratelimited("%s: %s: ignoring interrupt: 0x%08x due to DATATOUT_FOR_R1B quirk\n",
						mmc_hostname(host->mmc),
						__func__, intmask);
				MMC_TRACE(host->mmc,
					"%s: Quirk ignoring intr: 0x%08x\n",
						__func__, intmask);
				return;
			}
			if (intmask & SDHCI_INT_DATA_TIMEOUT) {
				host->cmd->error = -ETIMEDOUT;
				tasklet_schedule(&host->finish_tasklet);
				return;
			}
		}

		pr_err("%s: Got data interrupt 0x%08x even "
			"though no data operation was in progress.\n",