]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: reset FIFO after an error
authorJames Hogan <james.hogan@imgtec.com>
Wed, 29 Jun 2011 08:30:47 +0000 (09:30 +0100)
committerChris Ball <cjb@laptop.org>
Wed, 20 Jul 2011 21:21:06 +0000 (17:21 -0400)
commit955a75a3426bfb016b3bf330fcc200d2aa3e99cf
treef25015abe7cc532eab00d48e8292d437903e7927
parent1b1be03600a38bcc46fd02a42fc23248c1725203
mmc: dw_mmc: reset FIFO after an error

If an error occurs mid way through a transaction (such as a missing CRC
status response after the 2nd block written out of 3), then the FIFO may
still contain data which will interfere with the next transaction.
Therefore after an error has been detected, reset the fifo using the
CTRL register.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c