mmc: dw_mmc: Regression fix for non-IDMAC DMA
authorSeungwon Jeon <tgih.jun@samsung.com>
Mon, 20 Feb 2012 02:01:43 +0000 (11:01 +0900)
committerChris Ball <cjb@laptop.org>
Tue, 27 Mar 2012 16:19:57 +0000 (12:19 -0400)
commit885c3e800cf99db3391247776bfa2d262b21a72b
tree665c1e316becaf5eadffec256b22e1908597a842
parent9beee912a3c6e017f03ccefd826b57a6a46c0e31
mmc: dw_mmc: Regression fix for non-IDMAC DMA

3ec7699d3bb1b0ee7 ("mmc: dw_mmc: Add support for pre_req and post_req")
broke non-IDMAC DMA, because dw_mci_pre_dma_transfer() is valid only if
using internal DMA. In case of using other DMA it returns -ENOSYS. It
prevents the DMA operations.  This patch makes dw_mci_pre_dma_transfer()
effective in all DMA cases again.

Reported-by: James Hogan <james@albanarts.com>
Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c