[PATCH v5 4/5] dma: mmp_pdma: add support for residue reporting

Daniel Mack zonque at gmail.com
Tue Sep 10 11:46:37 EDT 2013


On 25.08.2013 20:08, Russell King - ARM Linux wrote:
> On Wed, Aug 21, 2013 at 02:08:57PM +0200, Daniel Mack wrote:
>> @@ -750,6 +822,7 @@ static enum dma_status mmp_pdma_tx_status(struct dma_chan *dchan,
>>  
>>  	spin_lock_irqsave(&chan->desc_lock, flags);
>>  	ret = dma_cookie_status(dchan, cookie, txstate);
>> +	txstate->residue = mmp_pdma_residue(chan, cookie);
> 
> Please consider using dma_set_residue() here - it is legal to call the
> tx status function with a NULL txstate.
> 

Will do. Thanks for the hint.


Daniel




More information about the linux-arm-kernel mailing list