lkml.org 
[lkml]   [2012]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] dmaengine: add dmanegine slave map api's
From
On Tue, Sep 18, 2012 at 10:52 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:

> There's a clue in that paragraph about how the DMA engine TX descriptors
> _should_ be handled. "hold a reference" is the clue. Or another way to
> say it, a kref should be embedded in the structure, providing us with
> proper reference counting - and descriptors should only be 'freed'
> (whether that means actually freeing them or placing them into a free
> list) when the last reference is dropped. That's _much_ better to
> understand than this DMA_CTRL_ACK business...

This indeed sounds like a more robust approach by far.
Why didn't we do that from the beginning ...

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2012-09-18 23:41    [W:0.061 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site