2021-09-07 15:14:57

by Bean Huo

[permalink] [raw]
Subject: [PATCH v1 1/2] mmc: cqhci: Print out qcnt in case of timeout

From: Bean Huo <[email protected]>

Print task count that has not been completed, this is for the
purpose of debugging.

Signed-off-by: Bean Huo <[email protected]>
---
drivers/mmc/host/cqhci-core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c
index 38559a956330..ca8329d55f43 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);
}

--
2.25.1


2021-09-14 11:26:32

by Ulf Hansson

[permalink] [raw]
Subject: Re: [PATCH v1 1/2] mmc: cqhci: Print out qcnt in case of timeout

On Tue, 7 Sept 2021 at 17:12, Bean Huo <[email protected]> wrote:
>
> From: Bean Huo <[email protected]>
>
> Print task count that has not been completed, this is for the
> purpose of debugging.
>
> Signed-off-by: Bean Huo <[email protected]>

Applied for next, thanks!

Kind regards
Uffe


> ---
> drivers/mmc/host/cqhci-core.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/cqhci-core.c b/drivers/mmc/host/cqhci-core.c
> index 38559a956330..ca8329d55f43 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);
> }
>
> --
> 2.25.1
>