From: Mark Brown Date: Tue, 10 Apr 2012 10:36:03 +0000 (+0100) Subject: mmc: sdhci: Log what timeout was set if the timeout is too large X-Git-Tag: upstream/snapshot3+hdmi~7379^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=021459773d9b93e8d7388086db7b17107bdfc51d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Mark Brown Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index ccefdeb..e626732 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -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; }