Re: [PATCH 1/4] mmc: dw_mmc: add central watchdog and convert CTO onto it

From: Francesco Saverio Pavone

Date: Mon Nov 30 2026 - 06:13:04 EST


Hi Shawn,

> The CRC error case may come from the abort command which didn't
> disarm the watchdog. Could you help test the patch below:
>
> https://lore.kernel.org/linux-mmc/20261123191703.179283-12-lee@xxxxxxxxxx/

Tested on the ROCK 5B+: plain v7.4-rc4 against v7.4-rc4 plus that
patch, five boots each, alternating.

v7.4-rc4 "Data timeout, state 3" once in 5 of 5 boots
v7.4-rc4 + patch "Data timeout, state 3" once in 5 of 5 boots

Tuning succeeded in all ten (phase 59, 69 or 70), 36 to 70 ms after
the switch to 198 MHz. The warning comes 0.4 to 2.5 ms before the
"Successfully tuned" line, and there were no other mmc messages. So
the patch does not change this warning here.

The message points the same way in all ten boots. dw_mmc prints "Data
timeout" only when the data events are the ones being watched, and
state 3 is STATE_DATA_BUSY, so the request is still open and waiting
for data-over. That is a different case from a watch left armed after
the request has ended, and it matches the one boot I traced earlier.

Francesco