]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: Fix switch from DMA to PIO
authorSeungwon Jeon <tgih.jun@samsung.com>
Tue, 10 Apr 2012 00:53:32 +0000 (09:53 +0900)
committerChris Ball <cjb@laptop.org>
Sat, 21 Apr 2012 00:30:37 +0000 (20:30 -0400)
commitd3483203b7e6dec0d71d9be7d66e6ceea4ec9320
treed3d7bb12cbabce20789671d07055e305b8138c1a
parentbd6e424d43cf7d054dbf70c39bc19b04524a63ef
mmc: dw_mmc: Fix switch from DMA to PIO

When dw_mci_pre_dma_transfer returns failure in some reasons,
dw_mci_submit_data will prepare to switch the PIO mode from DMA.
After switching to PIO mode, DMA(IDMAC in particular) is still
enabled. This makes the corruption in handling interrupt and
the driver lock-up.

Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c