Linux-Rockchip Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Francesco Saverio Pavone <pavone.lawyer@gmail.com>
Cc: Ulf Hansson <ulfh@kernel.org>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	 Shawn Lin <shawn.lin@rock-chips.com>,
	linux-mmc@vger.kernel.org, linux-rockchip@lists.infradead.org
Subject: Re: [PATCH] mmc: dw_mmc: Demote the data timeout message to dev_dbg
Date: Fri, 4 Dec 2026 17:06:02 +0100	[thread overview]
Message-ID: <axLkp08T_Ej-sOkd@venus> (raw)
In-Reply-To: <20261204062230.10387-1-pavone.lawyer@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2091 bytes --]

Hi,

On Fri, Dec 04, 2026 at 07:22:28AM +0100, Francesco Saverio Pavone wrote:
> Since commit ec0db371236e ("mmc: dw_mmc: convert DTO onto the central
> watchdog") the driver prints a warning when the data timeout watchdog
> fires:
> 
>   dwmmc_rockchip fe2c0000.mmc: Data timeout, state 3
> 
> On a ROCK 5B+ (RK3588) this shows up once per boot, while the SD card
> is being tuned. A tuning command whose data never arrives ends in this
> timeout, the request fails with -ETIMEDOUT and the tuning goes on to
> the next phase. In 17 boots of v7.4-rc5 the warning was there once in
> each, right before "Successfully tuned phase".
> 
> State 3 is STATE_DATA_BUSY. The old dw_mci_dto_timer() handled a
> timeout in that state without printing anything, and the data errors
> reported by the controller itself are already dev_dbg(). Use dev_dbg()
> here too.
> 
> Fixes: ec0db371236e ("mmc: dw_mmc: convert DTO onto the central watchdog")
> Suggested-by: Shawn Lin <shawn.lin@rock-chips.com>
> Link: https://lore.kernel.org/all/613ac7d8-4bce-4764-9234-7686351200fb@rock-chips.com/
> Signed-off-by: Francesco Saverio Pavone <pavone.lawyer@gmail.com>
> ---

Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>

Greetings,

-- Sebastian

>  drivers/mmc/host/dw_mmc.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index ff0b25d287a94..897936252ea08 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -150,8 +150,7 @@ static enum hrtimer_restart dw_mci_watchdog_fn(struct hrtimer *t)
>  	}
>  
>  	if (host->wd_events == DW_MCI_WD_DATA_EVENTS) {
> -		dev_warn(host->dev,
> -			 "Data timeout, state %d\n", host->state);
> +		dev_dbg(host->dev, "Data timeout, state %d\n", host->state);
>  		host->data_status = SDMMC_INT_DRTO;
>  		set_bit(EVENT_DATA_ERROR, &host->pending_events);
>  		set_bit(EVENT_DATA_COMPLETE, &host->pending_events);
> 
> base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
> -- 
> 2.54.0
> 

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

      reply	other threads:[~2026-12-04 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:22 [PATCH] mmc: dw_mmc: Demote the data timeout message to dev_dbg Francesco Saverio Pavone
2026-12-04 16:06 ` Sebastian Reichel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=axLkp08T_Ej-sOkd@venus \
    --to=sebastian.reichel@collabora.com \
    --cc=jh80.chung@samsung.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=pavone.lawyer@gmail.com \
    --cc=shawn.lin@rock-chips.com \
    --cc=ulfh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox