mmc: at91_mci: do not read irq status twice as it will forget some errors
authorNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 30 May 2008 12:28:45 +0000 (14:28 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 15 Jul 2008 12:14:42 +0000 (14:14 +0200)
commitba7deeed96ca1855c153ad81c45baf6efe1a3362
tree9abf223b5dff465f9dd1f0aa5e30d17f44afc685
parent7a6588ba20aed4505da912f9dd73616e9bd9ba67
mmc: at91_mci: do not read irq status twice as it will forget some errors

Reading AT91_MCI_SR again at the end of transfer can corrupt the
error reporting. Some fields in the SR register are read-and-clear.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/at91_mci.c