]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[ARM] 3485/1: i.MX: MX1 SD/MMC fix of unintentional double start possibility
authorPavel Pisa <ppisa@pikron.com>
Sun, 30 Apr 2006 14:35:54 +0000 (15:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 30 Apr 2006 14:35:54 +0000 (15:35 +0100)
commit81d38428df26377c91e7e193aa4d2fdfdcda300a
treea20817dcdee6f2c73d8b5c8cbfb57518466794f8
parente0a515bc6a2188f02916e976f419a8640312e32a
[ARM] 3485/1: i.MX: MX1 SD/MMC fix of unintentional double start possibility

Patch from Pavel Pisa

The clock starting imxmci_start_clock() function contains hardware
issue workaround, which repeats start attempt, if SDHC does not react on
the first trial. But the second start attempt can be taken even, if the
first succeed and test code misses time limited clock running phase
due to delay caused by schedule to other task or some another device
interrupt. This change enables to detect such situation.
The performance is not issue, because usually at full clock rate
only about six loops in delay cycle are needed.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/imxmmc.c