]> git.baikalelectronics.ru Git - kernel.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)
commitb73794aecf3bd64659bb8cea94c56b5120172d06
treea20817dcdee6f2c73d8b5c8cbfb57518466794f8
parent26510d4b51f216bd78266b3e26a9aee3db3be551
[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