Re: [PATCH v2 1/2] dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*

2019-01-19 Thread Vinod Koul
On 07-01-19, 09:32, Shunyong Yang wrote: > In async_tx_test_ack(), it uses flags in struct dma_async_tx_descriptor > to check the ACK status. As hidma reuses the descriptor in a free list > when hidma_prep_dma_*(memcpy/memset) is called, the flag will keep ACKed > if the descriptor has been used

[PATCH v2 1/2] dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_*

2019-01-06 Thread Shunyong Yang
In async_tx_test_ack(), it uses flags in struct dma_async_tx_descriptor to check the ACK status. As hidma reuses the descriptor in a free list when hidma_prep_dma_*(memcpy/memset) is called, the flag will keep ACKed if the descriptor has been used before. This will cause a BUG_ON in