Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1348894 > unrolled thread

Re: [PATCH] dmaengine: rcar-dmac: clear pertinence number of channels

Started byGeert Uytterhoeven <geert@linux-m68k.org>
First post2016-03-03 09:30 +0100
Last post2016-03-03 18:30 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] dmaengine: rcar-dmac: clear pertinence number of channels Geert Uytterhoeven <geert@linux-m68k.org> - 2016-03-03 09:30 +0100
    Re: [PATCH v2] dma: rcar-dmac: clear pertinence number of channels Laurent Pinchart <laurent.pinchart@ideasonboard.com> - 2016-03-03 12:00 +0100
    Re: [PATCH v2] dma: rcar-dmac: clear pertinence number of channels Vinod Koul <vinod.koul@intel.com> - 2016-03-03 18:30 +0100

#1348894 — Re: [PATCH] dmaengine: rcar-dmac: clear pertinence number of channels

FromGeert Uytterhoeven <geert@linux-m68k.org>
Date2016-03-03 09:30 +0100
SubjectRe: [PATCH] dmaengine: rcar-dmac: clear pertinence number of channels
Message-ID<r8wNY-4hQ-15@gated-at.bofh.it>
On Thu, Mar 3, 2016 at 7:04 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>
> DMACHCLR clears each channels, but its channel number is based on
> its SoC or IP. Current driver is using fixed 0x7fff (= for 14ch),

15ch.

> it is not good match for Gen3 or Gen2 Audio DMAC. This patch fixes it
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

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

[toc] | [next] | [standalone]


#1348976 — Re: [PATCH v2] dma: rcar-dmac: clear pertinence number of channels

FromLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Date2016-03-03 12:00 +0100
SubjectRe: [PATCH v2] dma: rcar-dmac: clear pertinence number of channels
Message-ID<r8z98-5Rb-31@gated-at.bofh.it>
In reply to#1348894
Hi Morimoto-san,

Thank you for the patch.

On Thursday 03 March 2016 17:25:53 Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> DMACHCLR clears each channels, but its channel number is based on
> its SoC or IP. Current driver is using fixed 0x7fff (= for 15ch),
> it is not good match for Gen3 or Gen2 Audio DMAC. This patch fixes it
> 
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>

Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
> v1 -> v2
> 
>  - 14ch -> 15ch
> 
>  drivers/dma/sh/rcar-dmac.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c
> index 57a6dfc9..02b86c6 100644
> --- a/drivers/dma/sh/rcar-dmac.c
> +++ b/drivers/dma/sh/rcar-dmac.c
> @@ -422,7 +422,7 @@ static int rcar_dmac_init(struct rcar_dmac *dmac)
>  	u16 dmaor;
> 
>  	/* Clear all channels and enable the DMAC globally. */
> -	rcar_dmac_write(dmac, RCAR_DMACHCLR, 0x7fff);
> +	rcar_dmac_write(dmac, RCAR_DMACHCLR, GENMASK(dmac->n_channels - 1, 0));
>  	rcar_dmac_write(dmac, RCAR_DMAOR,
>  			RCAR_DMAOR_PRI_FIXED | RCAR_DMAOR_DME);

-- 
Regards,

Laurent Pinchart

[toc] | [prev] | [next] | [standalone]


#1349426 — Re: [PATCH v2] dma: rcar-dmac: clear pertinence number of channels

FromVinod Koul <vinod.koul@intel.com>
Date2016-03-03 18:30 +0100
SubjectRe: [PATCH v2] dma: rcar-dmac: clear pertinence number of channels
Message-ID<r8Fey-21e-7@gated-at.bofh.it>
In reply to#1348894
On Thu, Mar 03, 2016 at 05:25:53PM +0900, Kuninori Morimoto wrote:
> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> 
> DMACHCLR clears each channels, but its channel number is based on
> its SoC or IP. Current driver is using fixed 0x7fff (= for 15ch),
> it is not good match for Gen3 or Gen2 Audio DMAC. This patch fixes it

Applied, thanks

-- 
~Vinod

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web