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

Commit 02145977 authored by Mark Brown's avatar Mark Brown Committed by Chris Ball
Browse files

mmc: sdhci: Log what timeout was set if the timeout is too large



Rather than just logging that we came up with an excessively large timeout
say what the timeout was, this may provide some clues as to what the issue
is.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 7f8bea7f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -680,8 +680,8 @@ static u8 sdhci_calc_timeout(struct sdhci_host *host, struct mmc_command *cmd)
	}

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