From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH/RFC 04/10] ravb: Add support for r8a7795 SoC
Date: Tue, 08 Sep 2015 20:52:21 +0000 [thread overview]
Message-ID: <55EF4A85.8040502@cogentembedded.com> (raw)
In-Reply-To: <1440667450-3513-5-git-send-email-horms+renesas@verge.net.au>
Hello.
On 09/02/2015 05:13 AM, Simon Horman wrote:
>>> Thanks for the update!
>>
>>> On Fri, Aug 28, 2015 at 10:27 AM, Simon Horman <horms@verge.net.au> wrote:
>>>> --- a/Documentation/devicetree/bindings/net/renesas,ravb.txt
>>>> +++ b/Documentation/devicetree/bindings/net/renesas,ravb.txt
>>>> @@ -6,8 +6,12 @@ interface contains.
>>>> Required properties:
>>>> - compatible: "renesas,etheravb-r8a7790" if the device is a part of R8A7790 SoC.
>>>> "renesas,etheravb-r8a7794" if the device is a part of R8A7794 SoC.
>>>> + "renesas,etheravb-r8a7795" if the device is a part of R8A7795 SoC.
>>>> - reg: offset and length of (1) the register block and (2) the stream buffer.
>>>> -- interrupts: interrupt specifier for the sole interrupt.
>>>> +- interrupts: interrupt specifiers.
>>>> + One data and one emac interrupt for the R8A7795 SoC;
>>
>> Data?! What the heck does it mean? :-/
>
> Perhaps it would be better to refer to them as dmac interrupts.
No, they do not seem to be limited to AVB-DMAC.
> The documentation makes reference to "merged data interrupt", which
> seems to refer to tx and rx interrupts. But this interrupt is also
> used for error and management related interrupts.
Yes.
> I'm all ears with regards to a good name.
AFAICS from the manual, there are many reasons for these, perhaps calling
them "a" for ch22 (and "b" for ch23) would make more sense.
> With regards to the documentation consistently referring to "E-MAC",
> which you raised elsewhere. Yes I see that too but I'm not sure where
> you are going there. If you would like to tweak the documentation
> or name of the interrupt somehow please spell out your ideas a little
> more clearly.
Please just don't call it emac in the prop description, call it E-MAC,
that's all.
>>>> + these interrupts must be named.
>>>> + One named or unnamed data interrupt otherwise.
>>>> - phy-mode: see ethernet.txt file in the same directory.
>>>> - phy-handle: see ethernet.txt file in the same directory.
>>>> - #address-cells: number of address cells for the MDIO bus, must be equal to 1.
>>>> @@ -18,6 +22,12 @@ Required properties:
>>>> Optional properties:
>>>> - interrupt-parent: the phandle for the interrupt controller that services
>>>> interrupts for this device.
>>>> +- interrupt-names: Names of named interrupts.
>>>> + If the property is present "data" is required.
>>>> + "emac" is also required for the R8A7795 SoC;
>>>> + it is prohibited otherwise.
>>>> + This property is mandatory for the R8A7795 SoC;
>>>> + optional otherwise.
>>>> - pinctrl-names: pin configuration state name ("default").
>>>> - renesas,no-ether-link: boolean, specify when a board does not provide a proper
>>>> AVB_LINK signal.
>>>
>>> What about the 25 channel interrupts?
>>> "data" and "emac" seem to use ch22 resp. ch 24 on Gen3.
>>>
>>> I'm afraid this will bite us one day.
>>
>> Me too. We should describe the real hardware, not how the driver uses it.
>> Where does configuring the AVB interrupt mode happen?
Now I'm seeing it happens in the controller itself.
> I believe that we all want that. Lets see about making it so :)
>
> As I mentioned above, broadly speaking the interrupts may be configured in
> one of two modes.
There are many bits controlling the interrupt routing, so not sure we're
limited to just 2 modes.
> And the default configuration is to use what I earlier
> described as "compatible". I will now just refer to it as mode 1 with
> the other mode being mode 2.
I believe I have replied to the text below in a mail to Geert.
[...]
MBR, Sergei
next prev parent reply other threads:[~2015-09-08 20:52 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 9:24 [PATCH/RFC 04/10] ravb: Add support for r8a7795 SoC Simon Horman
2015-08-27 11:01 ` Geert Uytterhoeven
2015-08-27 11:03 ` Sergei Shtylyov
2015-08-28 1:42 ` Simon Horman
2015-08-28 2:01 ` Simon Horman
2015-08-28 2:13 ` Simon Horman
2015-08-28 8:27 ` Simon Horman
2015-08-28 8:35 ` Geert Uytterhoeven
2015-08-28 9:09 ` Simon Horman
2015-08-28 10:20 ` Sergei Shtylyov
2015-08-28 10:30 ` Sergei Shtylyov
2015-08-28 10:51 ` Sergei Shtylyov
2015-08-28 11:46 ` Sergei Shtylyov
2015-08-28 12:05 ` Simon Horman
2015-08-28 12:42 ` Sergei Shtylyov
2015-08-28 13:21 ` Sergei Shtylyov
2015-09-02 2:13 ` Simon Horman
2015-09-02 2:13 ` Simon Horman
2015-09-02 2:14 ` Simon Horman
2015-09-02 7:26 ` Geert Uytterhoeven
2015-09-02 7:43 ` Simon Horman
2015-09-07 23:06 ` Sergei Shtylyov
2015-09-08 20:52 ` Sergei Shtylyov [this message]
2015-09-09 1:45 ` Simon Horman
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=55EF4A85.8040502@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=linux-sh@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).