From: Dan Williams <dan.j.williams@intel.com>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org,
linux-kernel@vger.kernel.org, haavard.skinnemoen@atmel.com
Subject: Re: [PATCH 1/2] dmaengine: TXx9 Soc DMA Controller driver
Date: Wed, 18 Mar 2009 10:26:13 -0700 [thread overview]
Message-ID: <e9c3a7c20903181026h1801ef6i945e6ce9ccb36b8a@mail.gmail.com> (raw)
In-Reply-To: <20090318.110154.76582864.nemoto@toshiba-tops.co.jp>
On Tue, Mar 17, 2009 at 7:01 PM, Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote:
> On Tue, 17 Mar 2009 18:23:46 -0700, Dan Williams <dan.j.williams@intel.com> wrote:
>> Or, just use some platform_data to identify the channel in the same
>> manner as atmel-mci?
>
> Yes, I still want to control chan->chan_id.
>
> The atmel-mci does not select "channel". It just pick the first
> usable channel of the dma_device specified by platform_data. I
> suppose dw_dmac is symmetric (it can use any channel for any slave).
You are right, it does not hardwire the channel, but it does hardwire
the device, see at32_add_device_mci [1].
> But TXx9 SoC DMAC channels are hardwired to each peripheral devices.
I think creating a dma_device instance per channel and specifying that
device like atmel-mci is the more future-proof way to go.
> And I want to call Channel-3 of DMAC-0 "dma0chan3" even if Channel-2
> was assigned to for public memcpy channel.
The problem is you could pass in the chan_id to guarantee 'chan3', but
there is no guarantee that you will get 'dma0', as the driver has no
knowledge of what other dma devices may be in the system.
[1] http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/avr32/mach-at32ap/at32ap700x.c;h=3fbfd1e32a9ee79af4f4545d95a9543b9070d189;hb=HEAD#l1327
next prev parent reply other threads:[~2009-03-18 17:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-13 15:28 Atsushi Nemoto
2009-02-26 1:45 ` Dan Williams
2009-02-26 15:24 ` Atsushi Nemoto
2009-03-12 16:19 ` Atsushi Nemoto
2009-03-13 14:16 ` Atsushi Nemoto
2009-03-16 21:50 ` Dan Williams
2009-03-17 2:20 ` Atsushi Nemoto
2009-03-17 4:52 ` Dan Williams
2009-03-17 16:09 ` Atsushi Nemoto
2009-03-17 17:02 ` Dan Williams
2009-03-18 0:49 ` Atsushi Nemoto
2009-03-18 1:23 ` Dan Williams
2009-03-18 2:01 ` Atsushi Nemoto
2009-03-18 17:26 ` Dan Williams [this message]
2009-03-21 12:29 ` Atsushi Nemoto
2009-03-26 14:12 ` Atsushi Nemoto
2009-03-31 19:34 ` Dan Williams
2009-04-01 16:20 ` Atsushi Nemoto
2009-03-16 21:20 ` Dan Williams
2009-03-17 1:52 ` Atsushi Nemoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e9c3a7c20903181026h1801ef6i945e6ce9ccb36b8a@mail.gmail.com \
--to=dan.j.williams@intel.com \
--cc=anemo@mba.ocn.ne.jp \
--cc=haavard.skinnemoen@atmel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®