mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 15:14:03 +08:00
03e8cb534e
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> |
||
---|---|---|
.. | ||
boot.h | ||
card.h | ||
core.h | ||
dw_mmc.h | ||
host.h | ||
ioctl.h | ||
Kbuild | ||
mmc.h | ||
pm.h | ||
sd.h | ||
sdhci-spear.h | ||
sdhci.h | ||
sdio_func.h | ||
sdio_ids.h | ||
sdio.h | ||
sh_mmcif.h | ||
sh_mobile_sdhi.h | ||
tmio.h |