Re: [PATCH 1/2] mmc: mxcmmc: fix race condition when dma finish a data transfer

2014-10-27 Thread Ulf Hansson
On 30 September 2014 16:59, Matteo Facchinetti wrote: > From: Matteo Facchinetti > > During a read of data block using dma, driver might have two ways to finish > to read > and free the resources: > 1) checking STATUS_DATA_TRANS_DONE mask, in the mxcmci_irq() routine >(pending to mmc irq) >

Re: [PATCH 1/2] mmc: mxcmmc: fix race condition when dma finish a data transfer

2014-10-07 Thread Sascha Hauer
On Tue, Sep 30, 2014 at 04:59:37PM +0200, Matteo Facchinetti wrote: > From: Matteo Facchinetti > > In accordance with the other drivers that using the dma engine, > fix it, leaving *only* to dma driver the complete control to > ending the read operation. > > Removing STATUS_READ_OP_DONE event ac

[PATCH 1/2] mmc: mxcmmc: fix race condition when dma finish a data transfer

2014-09-30 Thread Matteo Facchinetti
From: Matteo Facchinetti During a read of data block using dma, driver might have two ways to finish to read and free the resources: 1) checking STATUS_DATA_TRANS_DONE mask, in the mxcmci_irq() routine (pending to mmc irq) 2) mxmmc driver, registers also a mxcmci_dma_callback() and when trans