]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: dw_mmc: Fixes data read when receiving DTO interrupt in FIFO mode
authorLey Foon Tan <ley.foon.tan@intel.com>
Mon, 26 Apr 2021 03:35:05 +0000 (11:35 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 22 Jun 2021 04:02:11 +0000 (12:02 +0800)
commit873211a97966a1f2ae956fa8ad970282760253f7
tree9f83ee05a0436e1b646992ef7233ad5669b02672
parentdf4dca7451cffb58e12b1434d041a8f43bb80f9d
mmc: dw_mmc: Fixes data read when receiving DTO interrupt in FIFO mode

The data read is not working when using FIFO mode.

From DesignWare databook, when a Data_Transfer_Over (DTO) interrupt is
received, the software should read the remaining data from FIFO.

Add DTO interrupt checking on data read path and clear interrupts before
start reading from FIFO. So, it doesn't clear the next pending
interrupts unintentionally after read from FIFO.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/dw_mmc.c