[PATCH v5 4/5] dma: mmp_pdma: add support for residue reporting
Russell King - ARM Linux
linux at arm.linux.org.uk
Sun Aug 25 14:08:01 EDT 2013
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.
More information about the linux-arm-kernel
mailing list