Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci: report error once the maximum tuning loops exhausted or timeout

The original code missed to report an error when the maximum tuning
loops exhausted or timeout, it will cause the upper layer to wrongly
think the tuning process is passed.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Dong Aisheng and committed by
Chris Ball
114f2bf6 6b4fb671

+1
+1
drivers/mmc/host/sdhci.c
··· 1989 1989 if (!tuning_loop_counter || !timeout) { 1990 1990 ctrl &= ~SDHCI_CTRL_TUNED_CLK; 1991 1991 sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2); 1992 + err = -EIO; 1992 1993 } else { 1993 1994 if (!(ctrl & SDHCI_CTRL_TUNED_CLK)) { 1994 1995 pr_info(DRIVER_NAME ": Tuning procedure"