[Top] [All Lists]

Re: [PATCH 1/2] dmaengine: TXx9 Soc DMA Controller driver

To: Atsushi Nemoto <>
Subject: Re: [PATCH 1/2] dmaengine: TXx9 Soc DMA Controller driver
From: Dan Williams <>
Date: Tue, 17 Mar 2009 10:02:14 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=o/O0DAgTOtEHU8RYPwJ8tU43q8nCF8+0R641sYeP+4Y=; b=k3EF8wKV0u4P27Z6cCnTXLR7RMvJ6IbBWt0Idp6eIi3Rqhe2bWalFq5rMdgLWJZqBk XXmgId+gVHDbv9D8XKFLN60xujxMHIbUAtYqCCjAWpoaP00S7I9kJOCz8p6Cs84PoLsu jKByAop4fdU8zz60VhYYFAw2MaZge9nBRjnAA=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=EZQbcPDxYrEc/5e5NFfsf1Icz8kWFMWrglBVAXzo3D5njEHS8sNLxz7e4mcLfCian6 mVpz5/gHm2j4LNItfMBdSgQG0O/2webxN07aqgM4dcCcfaWoQEm42yB14JHHO+/8VG5s GdG9m6jhZ4SGw6SxRT+QbZiu++tiTTnsFgs6U=
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <> <>
On Tue, Mar 17, 2009 at 9:09 AM, Atsushi Nemoto <> wrote:
> On Mon, 16 Mar 2009 21:52:10 -0700, Dan Williams <> 
> wrote:
>> > Hmm.. why idr_ref is dynamically allocated?  Just putting it in
>> > dma_device makes thing more simple, no?
>> The sysfs device has a longer lifetime than dma_device.  See commit
>> 41d5e59c [1].
> The sysfs device for dma_chan (dma_chan_dev) has a shorter lifetime
> than dma_device, doesn't it?

No,  dma_async_device_unregister(), and the freeing of dma_device, may
finish before chan_dev_release is called.  Userspace gates the final
release of dma_chan_dev objects.

<Prev in Thread] Current Thread [Next in Thread>