From: Arnd Bergmann <arnd@arndb.de>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Vinod Koul <vinod.koul@intel.com>,
Mark Brown <broonie@kernel.org>, Simon <horms@verge.net.au>,
Linux-SH <linux-sh@vger.kernel.org>,
Linux-ALSA <alsa-devel@alsa-project.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Laurent <laurent.pinchart@ideasonboard.com>
Subject: Re: [PATCH 0/19] ASoC: rsnd: move 2nd DMAC from DMAEngine to rsnd driver
Date: Thu, 19 Feb 2015 08:19:45 +0000 [thread overview]
Message-ID: <7023820.M4yQMnvTuN@wuerfel> (raw)
In-Reply-To: <87vbiy1rul.wl%kuninori.morimoto.gx@renesas.com>
On Thursday 19 February 2015 03:50:14 Kuninori Morimoto wrote:
> Hi Mark, Arnd, Vinod
> Cc: Laurent, SH-ML
>
> Renesas R-Car sound (= rsnd) needs 2 DMAC which are called as
> Audio DMAC (= 1st DMAC) and Audio DMAC peri peri (2nd DMAC).
> And rsnd had assumed that 1st / 2nd DMACs are implemented as DMAEngine.
> But, in result of DMA ML long term discussion, 2nd DMAC was concluded
> that it is not a general purpose DMAC (2nd DMAC is for Device to Device
> inside sound system). Additionally, current DMAEngine can't support Device
> to Device, and we don't have correct DT bindings for it at this point.
> So the easiest solution for it is that move it from DMAEngine to rsnd
> driver.
> http://thread.gmane.org/gmane.linux.ports.sh.devel/41063/focusC829
>
> These patches add Audio DMAC peri peri implementation in rsnd driver.
> I will remove current DMAEngine side Audio DMAC peri peri implement
> if these are accepted.
>
> Arnd, Vinod
>
> I'm happy if you can send Ack for these patches
Looks very good overall, I just have one more idea for simplifying
the binding, please see if that can work or not:
I see that there are already subnodes for the individual ssi, src, dvc
and dai nodes, which contain among other things the interrupt lines
like
ssi3: ssi@3 {
interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
};
It seems that you are adding for the same set of devices a dma
line per subdevice, but have chosen to have them all in the parent
node:
dma-names = "ssi0-rx", "ssi0-tx", "ssiu0-rx", "ssiu0-tx",
...
Have you considered moving the channels into the slave nodes to avoid
having to construct the names? I think it can just look like
ssi3: ssi@3 {
interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&audma0 0x07>, <&audma1 0x08>,
<&audma0 0x6f>, <&audma1 0x70>;
dma-names = "rx", "tx", "rxu", "txu";
};
which would be a more logical structure.
Arnd
next prev parent reply other threads:[~2015-02-19 8:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-19 3:50 [PATCH 0/19] ASoC: rsnd: move 2nd DMAC from DMAEngine to rsnd driver Kuninori Morimoto
2015-02-19 3:50 ` [PATCH 01/19] ASoC: rsnd: remove SH-DMA-BASE specific implementation Kuninori Morimoto
2015-02-19 3:50 ` [PATCH 02/19] ASoC: rsnd: remove un-needed parameter from rsnd_dma_init() Kuninori Morimoto
2015-02-19 3:51 ` [PATCH 03/19] ASoC: rsnd: remove unused rsnd_dma_available() Kuninori Morimoto
2015-02-19 3:51 ` [PATCH 04/19] ASoC: rsnd: remove un-needed parameter from rsnd_dma_quit() Kuninori Morimoto
2015-02-19 3:51 ` [PATCH 05/19] ASoC: rsnd: tidyup rsnd_dma_to_mod() macro declaration position Kuninori Morimoto
2015-02-19 3:51 ` [PATCH 06/19] ASoC: rsnd: enable to get resource by name Kuninori Morimoto
2015-02-19 3:51 ` [PATCH 07/19] ASoC: rsnd: add rsnd_gen_get_phy_addr() to get physical address Kuninori Morimoto
2015-02-19 3:51 ` [PATCH 08/19] ASoC: rsnd: add dma.c for Audio DMAC / Audio DMAC peri peri Kuninori Morimoto
2015-02-19 3:52 ` [PATCH 09/19] ASoC: rsnd: move rsnd_gen_dma_addr() from gen.c to dma.c Kuninori Morimoto
2015-02-19 3:52 ` [PATCH 10/19] ASoC: rsnd: enable to care 1st / 2nd DMAC on rsnd_dma_xxx() Kuninori Morimoto
2015-02-19 3:52 ` [PATCH 11/19] ASoC: rsnd: add Audio DMAC peri peri support rework Kuninori Morimoto
2015-02-19 3:52 ` [PATCH 12/19] ASoC: rsnd: dma-names cares 1st DMAC only Kuninori Morimoto
2015-02-19 3:52 ` [PATCH 13/19] ASoC: rsnd: remove rsnd_dma::addr Kuninori Morimoto
2015-02-19 3:53 ` [PATCH 14/19] ASoC: rsnd: remove rsnd_dma::dir Kuninori Morimoto
2015-02-19 3:53 ` [PATCH 15/19] ASoC: rsnd: tidyup rcar_sound,ssi sample code Kuninori Morimoto
2015-02-19 3:53 ` [PATCH 16/19] ASoC: rsnd: add sample code of rcar_sound,src irq Kuninori Morimoto
2015-02-19 3:53 ` [PATCH 17/19] ASoC: rsnd: add sample code of reg-names Kuninori Morimoto
2015-02-19 3:53 ` [PATCH 18/19] ASoC: rsnd: add sample code of missing clocks Kuninori Morimoto
2015-02-19 3:53 ` [PATCH 19/19] ASoC: rsnd: add sample code of dma entry Kuninori Morimoto
2015-02-19 8:19 ` Arnd Bergmann [this message]
2015-02-19 8:44 ` [PATCH 0/19] ASoC: rsnd: move 2nd DMAC from DMAEngine to rsnd driver Kuninori Morimoto
2015-02-19 8:51 ` Arnd Bergmann
2015-02-19 9:11 ` Kuninori Morimoto
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=7023820.M4yQMnvTuN@wuerfel \
--to=arnd@arndb.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lgirdwood@gmail.com \
--cc=linux-sh@vger.kernel.org \
--cc=vinod.koul@intel.com \
/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