On Thu, May 21, 2015 at 09:47:35AM +0200, Maxime Ripard wrote:
> On Mon, May 18, 2015 at 02:16:14PM +0530, Vinod Koul wrote:
> > > +static enum dma_status sun4i_dma_tx_status(struct dma_chan *chan,
> > > +                                    dma_cookie_t cookie,
> > > +                                    struct dma_tx_state *state)
> > > +{
> > > + struct sun4i_dma_vchan *vchan = to_sun4i_dma_vchan(chan);
> > > + struct sun4i_dma_pchan *pchan = vchan->pchan;
> > > + struct sun4i_dma_contract *contract;
> > > + struct sun4i_dma_promise *promise;
> > > + struct virt_dma_desc *vd;
> > > + unsigned long flags;
> > > + enum dma_status ret;
> > > + size_t bytes = 0;
> > > +
> > > + ret = dma_cookie_status(chan, cookie, state);
> > > + if (ret == DMA_COMPLETE)
> > > +         return ret;
> >
> > Pls check if state is valid before progressing ahead
> 
> Just one more question about this one. What should we return in the
> case where state would be NULL ? DMA_ERROR?
whatever dma_cookie_status returns

-- 
~Vinod

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to