]> git.sur5r.net Git - u-boot/commit
mmc: dw_mmc: push/pop all FIFO data if any data request
authorJacob Chen <jacob2.chen@rock-chips.com>
Mon, 19 Sep 2016 02:16:50 +0000 (10:16 +0800)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 21 Sep 2016 07:00:14 +0000 (16:00 +0900)
commit2b42903397b4d6b68fe2af95565a8953b08ab96e
tree549ee71317f8bbeccf207f95ddc03489ababd6a6
parent6dffdbc3a5911e768be21850a612bfb4871a23ef
mmc: dw_mmc: push/pop all FIFO data if any data request

When DTO interrupt occurred, there are any remaining data still in FIFO
due to RX FIFO threshold is larger than remaining data. It also
causes that dwmmc didn't trigger RXDR interrupt, so is TX.

It's responsibility of driver to read remaining bytes on seeing DTO
interrupt.

Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
drivers/mmc/dw_mmc.c