Skip to content

Commit d7d1aa6

Browse files
committed
mmc: sdhci: remove tuning failure log for DDR50 mode
In SD 3.0 spec, there is no tuning for the DDR50 mode. In SD 3.0.1 spec, tuning can be performed for the DDR50 mode. Most of the SD card are only compliant with SD 3.0 spec. It leads to get some logs because the tuning procedure, which is not supported, has failed. This log is useless most of the time. Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
1 parent 3c8ae99 commit d7d1aa6

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

drivers/mmc/host/sdhci.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,8 +2108,17 @@ static void __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode)
21082108
sdhci_send_tuning(host, opcode);
21092109

21102110
if (!host->tuning_done) {
2111-
pr_info("%s: Tuning timeout, falling back to fixed sampling clock\n",
2112-
mmc_hostname(host->mmc));
2111+
/*
2112+
* Tuning for DDR50 mode appeared in the SD 3.0.1
2113+
* specification. If the card is only compliant with
2114+
* SD 3.0 and not SD 3.0.1 (as most of the SD cards),
2115+
* CMD19 will fail. In this case, the failure is not
2116+
* an error. It's useless to display that we fall back
2117+
* to fixed sampling clock at each tuning procedure.
2118+
*/
2119+
if (host->timing != MMC_TIMING_UHS_DDR50)
2120+
pr_info("%s: Tuning timeout, falling back to fixed sampling clock\n",
2121+
mmc_hostname(host->mmc));
21132122
sdhci_abort_tuning(host, opcode);
21142123
return;
21152124
}

0 commit comments

Comments
 (0)