]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
MMC: OMAP: Do not busy wait for end of command for ever
authorJarkko Lavinen <jarkko.lavinen@nokia.com>
Fri, 28 Dec 2007 20:38:23 +0000 (16:38 -0400)
committerTony Lindgren <tony@atomide.com>
Thu, 24 Jan 2008 19:01:03 +0000 (11:01 -0800)
commit8a001d30c6a0bbd4ab8cb38da2e519345c9f202c
tree15ef5fd24e3d8d571b5a183b561d9bb38f864eaa
parent77770466360bbec943edfc29b1aaa2e6c34a0a68
MMC: OMAP: Do not busy wait for end of command for ever

The limit was a fixed 100k limit in the busy loop, which is not
accurate. It would better to have time limit for the worst case
which occurs when sending 80 cycles at 400 kHz and takes about
200 microseconds, so limit the max time spend in the busy loop
for some 250 microseconds.

Signed-off-by: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/mmc/host/omap.c