]> git.sur5r.net Git - u-boot/commit
Tegra2: mmc: Add data transfer completion timeout
authorAnton staaf <robotboy@chromium.org>
Thu, 10 Nov 2011 11:56:51 +0000 (11:56 +0000)
committerAndy Fleming <afleming@freescale.com>
Sat, 12 Nov 2011 21:39:29 +0000 (15:39 -0600)
commit9b3d1873c8c829debe8e8ab487783577285530d3
tree50dd51408f141b8f249e59bdb0c8eea933363dcf
parent5a762e2509a2d4b2e86168a2ffbc425087ecd75c
Tegra2: mmc: Add data transfer completion timeout

Currently when no expected completion condition occures in the
mmc_send_cmd while loop that is waiting for a data transfer to
complete the MMC driver just hangs.

This patch adds an arbitrary 2 second timeout.  If nothing we
recognize occures within 2 seconds some diagnostic information
is printed and we fail out.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Cc: Andy Fleming <afleming@gmail.com>
Cc: Tom Warren <twarren@nvidia.com>
Cc: Stephen Warren <swarren@nvidia.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
drivers/mmc/tegra2_mmc.c