sdhci: Add quirk for controllers that need small delays for PIO
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Mon, 16 Mar 2009 21:14:00 +0000 (00:14 +0300)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 24 Mar 2009 20:30:10 +0000 (21:30 +0100)
commit3e3bf20756aeee57a40fd37b923263c9a51b8c68
tree9cf64169c61208b59a1a6c16e0bfc48b45a1c7a7
parent8114634ccb54d67a8c01e5825d95bff4e7f7b357
sdhci: Add quirk for controllers that need small delays for PIO

Small udelay is needed to make eSDHC work in PIO mode. Without
the delay reading causes endless interrupt storm, and writing
corrupts data. The first guess would be that we must wait for
some bit in some register, but I didn't find any reliable bits
that change before and after the delay.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h