mmc: sdhci: report error once the maximum tuning loops exhausted or timeout
authorDong Aisheng <b29396@freescale.com>
Fri, 18 Oct 2013 11:48:45 +0000 (19:48 +0800)
committerChris Ball <chris@printf.net>
Mon, 21 Oct 2013 19:58:06 +0000 (15:58 -0400)
commit114f2bf6a158cd84c1a7280cf6233904c8bce430
tree63751ea2586da28c8906502e4210375cc2ee53a6
parent6b4fb6712a4c58b205c163e9080c349d71c208d0
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>
drivers/mmc/host/sdhci.c