Re: [PATCH v2] mmc: host: tmio: ensure end of DMA and SD access are in sync

2017-03-14 Thread Ulf Hansson
On 17 February 2017 at 19:22, Wolfram Sang wrote: > The current code assumes that DMA is finished before SD access end is > flagged. Thus, it schedules the 'dma_complete' tasklet in the SD card > interrupt routine when DATAEND is set. The assumption is not safe,

[PATCH v2] mmc: host: tmio: ensure end of DMA and SD access are in sync

2017-02-17 Thread Wolfram Sang
The current code assumes that DMA is finished before SD access end is flagged. Thus, it schedules the 'dma_complete' tasklet in the SD card interrupt routine when DATAEND is set. The assumption is not safe, though. Even by mounting an SD card, it can be seen that sometimes DMA complete is first,