Files
linux/drivers/mmc/host
James Hogan 03e8cb534e mmc: dw_mmc: fix stop when fallen back to PIO
There are several situations when dw_mci_submit_data_dma() decides to
fall back to PIO mode instead of using DMA, due to a short (to avoid
overhead) or "complex" (e.g. with unaligned buffers) transaction, even
though host->use_dma is set. However dw_mci_stop_dma() decides whether
to stop DMA or set the EVENT_XFER_COMPLETE event based on host->use_dma.
When falling back to PIO mode this results in data timeout errors
getting missed and the driver locking up.

Therefore add host->using_dma to indicate whether the current
transaction is using dma or not, and adjust dw_mci_stop_dma() to use
that instead.

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>
2011-07-20 17:21:05 -04:00
..
2011-05-18 23:24:50 +02:00
2010-11-01 15:38:34 -04:00
2008-12-16 14:58:17 +01:00
2011-07-20 17:20:51 -04:00
2011-03-31 11:26:23 -03:00
2009-03-24 21:30:03 +01:00
2011-03-15 13:49:32 -04:00
2011-03-31 11:26:23 -03:00
2009-10-01 16:11:15 -07:00
2011-05-25 16:51:40 -04:00
2011-07-20 17:20:57 -04:00
2011-07-20 17:20:57 -04:00
2011-03-25 10:30:49 -04:00
2011-03-31 11:26:23 -03:00
2007-07-26 01:53:31 +02:00