From: Simon Horman <horms@verge.net.au>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
Ulrich Hecht <ulrich.hecht+renesas@gmail.com>,
Magnus Damm <magnus.damm@gmail.com>
Subject: Re: [PATCH v2 3/3] arm64: renesas: r8a7796: Enable SCIF DMA
Date: Mon, 6 Mar 2017 09:44:20 +0100 [thread overview]
Message-ID: <20170306084419.GC11468@verge.net.au> (raw)
In-Reply-To: <CAMuHMdXaEDn30U=LTp7szRQYwTp48SfR6MFCYQ+aTBWXF41tEQ@mail.gmail.com>
On Fri, Mar 03, 2017 at 10:54:01AM +0100, Geert Uytterhoeven wrote:
> Hi Simon,
>
> On Thu, Mar 2, 2017 at 3:36 PM, Simon Horman <horms@verge.net.au> wrote:
> > On Tue, Feb 21, 2017 at 03:27:25PM +0100, Geert Uytterhoeven wrote:
> >> On Wed, Dec 7, 2016 at 5:44 PM, Ulrich Hecht
> >> <ulrich.hecht+renesas@gmail.com> wrote:
> >> > Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
> >> > ---
> >> > arch/arm64/boot/dts/renesas/r8a7796.dtsi | 13 +++++++++++++
> >> > 1 file changed, 13 insertions(+)
> >> >
> >> > diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
> >> > index c5f0df5..782063a 100644
> >> > --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi
> >> > +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
> >> > @@ -430,6 +430,9 @@
> >> > <&cpg CPG_CORE R8A7796_CLK_S3D1>,
> >> > <&scif_clk>;
> >> > clock-names = "fck", "brg_int", "scif_clk";
> >> > + dmas = <&dmac1 0x51>, <&dmac1 0x50>,
> >> > + <&dmac2 0x51>, <&dmac2 0x50>;
> >> > + dma-names = "tx", "rx", "tx", "rx";
> >> > power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
> >> > status = "disabled";
> >>
> >> Apparently the DMA properties were added to the HSCIF nodes instead
> >> of the SCIF nodes while applying this patch?
> >>
> >> 3 lines of context is not sufficient to distinguish between the various SCIF
> >> and HSCIF nodes :-(
> >
> > Thanks, I have updated renesas-devel accordingly.
> >
> > I notice in renesas-devel there seems to be one "tx", "rx" DMA per SCIF
> > rather than two added in Ulrich's patch. Is there a reason for that?
>
> You mean renesas-drivers?
Yes.
> Oops, looks like I cherry-picked an older version of the patch, and failed to
> notice after reverting your wrong version
> (perhaps the final version was never part of a pull request from Uli?).
>
> BTW, your version is wrong, too: the second pair of DMA channels
> should point to dmac2, not dmac1, e.g.:
>
> scif0: serial@e6e60000 {
> compatible = "renesas,scif-r8a7796",
> "renesas,rcar-gen3-scif", "renesas,scif";
> reg = <0 0xe6e60000 0 64>;
> interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>;
> clocks = <&cpg CPG_MOD 207>,
> <&cpg CPG_CORE R8A7796_CLK_S3D1>,
> <&scif_clk>;
> clock-names = "fck", "brg_int", "scif_clk";
> + dmas = <&dmac1 0x51>, <&dmac1 0x50>,
> - + <&dmac1 0x51>, <&dmac1 0x50>;
> + + <&dmac2 0x51>, <&dmac2 0x50>;
>
> + dma-names = "tx", "rx", "tx", "rx";
> power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
> status = "disabled";
> };
Thanks for noticing. I plan to squash the following incremental change into
the relevant commit. Hopefully that will be the end of this saga.
diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
index 84ecd4248fae..951e351ddae1 100644
--- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi
+++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi
@@ -569,7 +569,7 @@
<&scif_clk>;
clock-names = "fck", "brg_int", "scif_clk";
dmas = <&dmac1 0x51>, <&dmac1 0x50>,
- <&dmac1 0x51>, <&dmac1 0x50>;
+ <&dmac2 0x51>, <&dmac2 0x50>;
dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
status = "disabled";
@@ -585,7 +585,7 @@
<&scif_clk>;
clock-names = "fck", "brg_int", "scif_clk";
dmas = <&dmac1 0x53>, <&dmac1 0x52>,
- <&dmac1 0x53>, <&dmac1 0x52>;
+ <&dmac2 0x53>, <&dmac2 0x52>;
dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
status = "disabled";
@@ -644,7 +644,7 @@
<&scif_clk>;
clock-names = "fck", "brg_int", "scif_clk";
dmas = <&dmac1 0x5b>, <&dmac1 0x5a>,
- <&dmac1 0x5b>, <&dmac1 0x5a>;
+ <&dmac2 0x5b>, <&dmac2 0x5a>;
dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
status = "disabled";
next prev parent reply other threads:[~2017-03-06 8:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-07 16:44 [PATCH v2 0/3] r8a7796 SCIF integration Ulrich Hecht
2016-12-07 16:44 ` [PATCH v2 1/3] clk: renesas: r8a7796: Add SCIF clocks Ulrich Hecht
2016-12-09 9:12 ` Geert Uytterhoeven
2016-12-07 16:44 ` [PATCH v2 2/3] arm64: renesas: r8a7796: Add all SCIF nodes Ulrich Hecht
2016-12-08 9:06 ` Sergei Shtylyov
2016-12-07 16:44 ` [PATCH v2 3/3] arm64: renesas: r8a7796: Enable SCIF DMA Ulrich Hecht
2016-12-09 9:38 ` Geert Uytterhoeven
2017-02-21 14:27 ` Geert Uytterhoeven
2017-03-02 14:36 ` Simon Horman
2017-03-03 9:54 ` Geert Uytterhoeven
2017-03-06 8:44 ` Simon Horman [this message]
2016-12-08 13:34 ` [PATCH v2 0/3] r8a7796 SCIF integration Simon Horman
2016-12-09 9:42 ` Geert Uytterhoeven
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=20170306084419.GC11468@verge.net.au \
--to=horms@verge.net.au \
--cc=geert@linux-m68k.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=ulrich.hecht+renesas@gmail.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