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

Commit 09eeff52 authored by Chris Ball's avatar Chris Ball
Browse files

mmc: sdhci: Use DBG() instead of pr_warning() on large timeout



3bdc9ba8 ("mmc: use really long write timeout to deal with crappy
cards") in 3.4 increased the write timeout that the core sends to host
drivers to 3 seconds.  This makes sdhci's "requested timeout too large"
warning trigger on every write; so, change this pr_warning() to a DBG().

Reported-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent f8f5701b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -680,7 +680,7 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd)
	}

	if (count >= 0xF) {
		pr_warning("%s: Too large timeout 0x%x requested for CMD%d!\n",
		DBG("%s: Too large timeout 0x%x requested for CMD%d!\n",
		    mmc_hostname(host->mmc), count, cmd->opcode);
		count = 0xE;
	}