summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2024-02-20 09:38:14 +0100
committerJaehoon Chung <[email protected]>2024-04-15 15:19:12 +0900
commit60649a8d6cc975a36d06aad14ed55079e75bc4fa (patch)
tree7aadcd5e9163ecff0832564b5ff9c91442bdfbf7 /include
parenta3b2786651c7966ea9038f16c97f401406bdf7d3 (diff)
mmc: tmio: Check INFO1 for completion during DMA transfer
In case a CRC error occurs during DMA transfer, the transfer completion flag is not set in TMIO_SD_DMA_INFO1 and the transfer would eventually time out. The timeout could be very long in case the transfer consists of a large amount of blocks, the base timeout is 10 seconds and every block adds 100 us more. In case a CRC error does occur, a completion flag is set in a different register, TMIO_SD_INFO1. Use this other completion flag to detect DMA transfer ended and stop waiting for TMIO_SD_DMA_INFO1 completion flag. This reduces the lengthy timeout in case of an error. The unconditional check of TMIO_SD_DMA_INFO2 register for DMA related errors must not be skipped in any case to actually recognize the DMA error and report it. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Paul Barker <[email protected]> Tested-by: Paul Barker <[email protected]> Reviewed-by: Jaehoon Chung <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions