Re: [PATCH 0/4] dmaengine redux continued

From: Guennadi Liakhovetski
Date: Thu Dec 04 2008 - 15:04:06 EST

On Thu, 4 Dec 2008, Dan Williams wrote:

> On Thu, Dec 4, 2008 at 1:51 AM, Guennadi Liakhovetski
> <g.liakhovetski@xxxxxx> wrote:
> > What about the last hunk from the patch at
> >
> >
> >
> > ? Can we add this tx_free pointer? Would you like me to submit it as a
> > separate patch? I'd like to be able to reuse tx-descriptors in clients, so
> > I then have to explicitly release them in the dmaengine device
> > (controller) driver.
> >
> I took a look but the description does not explain why the driver
> needs an explicit release. In what cases is the implied release, when
> the descriptor is acked && done, insufficient?

v4l. I think, the proper moment to free tx-descriptors is at VIDIOC_DQBUF
time. I.e., there is an explicit ioctl from user-space: "free buffers
now". That's when I want to call .tx_free().

Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at