From: Bean Huo Date: Tue, 7 Sep 2021 15:12:03 +0000 (+0200) Subject: mmc: cqhci: Print out qcnt in case of timeout X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d47f163c7794ce93e762897dcb6a956b3421b368;p=linux.git mmc: cqhci: Print out qcnt in case of timeout Print task count that has not been completed, this is for the purpose of debugging. Signed-off-by: Bean Huo Link: https://lore.kernel.org/r/20210907151204.118861-2-huobean@gmail.com Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c index 38559a956330b..ca8329d55f433 100644 --- a/drivers/mmc/host/cqhci-core.c +++ b/drivers/mmc/host/cqhci-core.c @@ -899,8 +899,8 @@ static bool cqhci_timeout(struct mmc_host *mmc, struct mmc_request *mrq, spin_unlock_irqrestore(&cq_host->lock, flags); if (timed_out) { - pr_err("%s: cqhci: timeout for tag %d\n", - mmc_hostname(mmc), tag); + pr_err("%s: cqhci: timeout for tag %d, qcnt %d\n", + mmc_hostname(mmc), tag, cq_host->qcnt); cqhci_dumpregs(cq_host); }