All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine
@ 2015-01-22  3:49 Kuninori Morimoto
  2015-01-29  1:03 ` Kuninori Morimoto
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kuninori Morimoto @ 2015-01-22  3:49 UTC (permalink / raw)
  To: linux-sh

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Current rsnd sets dma_slave_config :: slave_id field for DMAEngine,
but it is no longer needed. Let's remove it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
v3 -> v4

 - no change

 sound/soc/sh/rcar/core.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index f0bb137..1f7ff2a 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -316,7 +316,7 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma,
 		  int is_play, int id)
 {
 	struct device *dev = rsnd_priv_to_dev(priv);
-	struct dma_slave_config cfg;
+	struct dma_slave_config cfg = {};
 	struct rsnd_mod *mod_from;
 	struct rsnd_mod *mod_to;
 	char dma_name[DMA_NAME_SIZE];
@@ -334,7 +334,6 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma,
 	rsnd_dma_of_path(dma, is_play, &mod_from, &mod_to);
 	rsnd_dma_of_name(mod_from, mod_to, dma_name);
 
-	cfg.slave_id	= id;
 	cfg.direction	= is_play ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
 	cfg.src_addr	= rsnd_gen_dma_addr(priv, mod_from, is_play, 1);
 	cfg.dst_addr	= rsnd_gen_dma_addr(priv, mod_to,   is_play, 0);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine
  2015-01-22  3:49 [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine Kuninori Morimoto
@ 2015-01-29  1:03 ` Kuninori Morimoto
  2015-01-29 11:32 ` Mark Brown
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Kuninori Morimoto @ 2015-01-29  1:03 UTC (permalink / raw)
  To: linux-sh

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Current rsnd sets dma_slave_config :: slave_id field for DMAEngine,
but it is no longer needed. Let's remove it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
v3 -> v4

 - no change

 sound/soc/sh/rcar/core.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 75308bb..61473d9 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -316,7 +316,7 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma,
 		  int is_play, int id)
 {
 	struct device *dev = rsnd_priv_to_dev(priv);
-	struct dma_slave_config cfg;
+	struct dma_slave_config cfg = {};
 	struct rsnd_mod *mod_from;
 	struct rsnd_mod *mod_to;
 	char dma_name[DMA_NAME_SIZE];
@@ -334,7 +334,6 @@ int rsnd_dma_init(struct rsnd_priv *priv, struct rsnd_dma *dma,
 	rsnd_dma_of_path(dma, is_play, &mod_from, &mod_to);
 	rsnd_dma_of_name(mod_from, mod_to, dma_name);
 
-	cfg.slave_id	= id;
 	cfg.direction	= is_play ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM;
 	cfg.src_addr	= rsnd_gen_dma_addr(priv, mod_from, is_play, 1);
 	cfg.dst_addr	= rsnd_gen_dma_addr(priv, mod_to,   is_play, 0);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine
  2015-01-22  3:49 [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine Kuninori Morimoto
  2015-01-29  1:03 ` Kuninori Morimoto
@ 2015-01-29 11:32 ` Mark Brown
  2015-02-27  9:40 ` Geert Uytterhoeven
  2015-03-02  0:03 ` Kuninori Morimoto
  3 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2015-01-29 11:32 UTC (permalink / raw)
  To: linux-sh

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

On Thu, Jan 29, 2015 at 01:03:20AM +0000, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> Current rsnd sets dma_slave_config :: slave_id field for DMAEngine,
> but it is no longer needed. Let's remove it.

Acked-by: Mark Brown <broonie@kernel.org>

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine
  2015-01-22  3:49 [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine Kuninori Morimoto
  2015-01-29  1:03 ` Kuninori Morimoto
  2015-01-29 11:32 ` Mark Brown
@ 2015-02-27  9:40 ` Geert Uytterhoeven
  2015-03-02  0:03 ` Kuninori Morimoto
  3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-02-27  9:40 UTC (permalink / raw)
  To: linux-sh

Hi Morimoto-san,

On Thu, Jan 29, 2015 at 2:03 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> Current rsnd sets dma_slave_config :: slave_id field for DMAEngine,
> but it is no longer needed. Let's remove it.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
> ---
> v3 -> v4
>
>  - no change

i noticed this patch was dropped in v5, and thus not applied by Vinod?
Did I miss a discussion about that?

https://patchwork.kernel.org/patch/5732671/

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine
  2015-01-22  3:49 [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine Kuninori Morimoto
                   ` (2 preceding siblings ...)
  2015-02-27  9:40 ` Geert Uytterhoeven
@ 2015-03-02  0:03 ` Kuninori Morimoto
  3 siblings, 0 replies; 5+ messages in thread
From: Kuninori Morimoto @ 2015-03-02  0:03 UTC (permalink / raw)
  To: linux-sh


Hi Geert

> > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> >
> > Current rsnd sets dma_slave_config :: slave_id field for DMAEngine,
> > but it is no longer needed. Let's remove it.
> >
> > Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> > Acked-by: Arnd Bergmann <arnd@arndb.de>
> > ---
> > v3 -> v4
> >
> >  - no change
> 
> i noticed this patch was dropped in v5, and thus not applied by Vinod?
> Did I miss a discussion about that?
> 
> https://patchwork.kernel.org/patch/5732671/

Thank you for pointing it, and sorry I didn't explain about this patch.
Yes, I dropped this patch, because, Renesas sound card can't use
Audio DMA peri peri via DMAEngine anymore.
Sound card is now customized not to use DMAEngine.
Above change (= remove slave_id from sound driver) is done in sound driver
side customize patch-set.
Otherwise, we will have conflict between DMAEngine <-> Sound branch

Best regards
---
Kuninori Morimoto

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-02  0:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22  3:49 [PATCH 7/9 v4] ASoC: rsnd: remove slave_id settings for DMAEngine Kuninori Morimoto
2015-01-29  1:03 ` Kuninori Morimoto
2015-01-29 11:32 ` Mark Brown
2015-02-27  9:40 ` Geert Uytterhoeven
2015-03-02  0:03 ` Kuninori Morimoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.