瀏覽代碼

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 <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Mark Brown 13 年之前
父節點
當前提交
021459773d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      drivers/mmc/host/sdhci.c

+ 2 - 2
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) {
 	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;
 		count = 0xE;
 	}
 	}