All of lore.kernel.org
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
	s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
	geert+renesas@glider.be, magnus.damm@gmail.com,
	netdev@vger.kernel.org, devicetree@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH net-next 1/5] dt-bindings: net: r8a779f0-ether-switch: Add ACLK
Date: Mon, 29 May 2023 21:44:28 +0100	[thread overview]
Message-ID: <20230529-ambiance-profile-d45c01caacc3@spud> (raw)
In-Reply-To: <15fece9d-a716-44d6-bd88-876979acedf1@lunn.ch>

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

On Mon, May 29, 2023 at 10:11:12PM +0200, Andrew Lunn wrote:
> On Mon, May 29, 2023 at 07:36:03PM +0100, Conor Dooley wrote:
> > On Mon, May 29, 2023 at 05:08:36PM +0900, Yoshihiro Shimoda wrote:
> > > Add ACLK of GWCA which needs to calculate registers' values for
> > > rate limiter feature.
> > > 
> > > Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> > > ---
> > >  .../bindings/net/renesas,r8a779f0-ether-switch.yaml    | 10 ++++++++--
> > >  1 file changed, 8 insertions(+), 2 deletions(-)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml b/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml
> > > index e933a1e48d67..cbe05fdcadaf 100644
> > > --- a/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml
> > > +++ b/Documentation/devicetree/bindings/net/renesas,r8a779f0-ether-switch.yaml
> > > @@ -75,7 +75,12 @@ properties:
> > >        - const: rmac2_phy
> > >  
> > >    clocks:
> > > -    maxItems: 1
> > > +    maxItems: 2
> > > +
> > > +  clock-names:
> > > +    items:
> > > +      - const: fck
> > > +      - const: aclk
> > 
> > Since having both clocks is now required, please add some detail in the
> > commit message about why that is the case. Reading it sounds like this
> > is an optional new feature & not something that is required.
> 
> This is something i wondered about, backwards compatibility with old
> DT blobs. In the C code it is optional, and has a default clock rate
> if the clock is not present.

Yeah, I did the cursory check of the code to make sure that an old dtb
would still function, which is part of why I am asking for the
explanation of the enforcement here. I'm not clear on what the
consequences of getting the default rate is. Perhaps if I read the whole
series and understood the code I would be, but this commit should
explain the why anyway & save me the trouble ;)

> So the yaml should not enforce an aclk member.

This however I could go either way on. If the thing isn't going to
function properly with the fallback rate, but would just limp on on
in whatever broken way it has always done, I would agree with making
the second clock required so that no new devicetrees are written in a
way that would put the hardware into that broken state.
On the other hand, if it works perfectly fine for some use cases without
the second clock & just using the default rathe then I don't think the
presence of the second clock should be enforced.

Cheers,
Conor.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2023-05-29 20:44 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-29  8:08 [PATCH net-next 0/5] net: renesas: rswitch: Improve performance of TX Yoshihiro Shimoda
2023-05-29  8:08 ` [PATCH net-next 1/5] dt-bindings: net: r8a779f0-ether-switch: Add ACLK Yoshihiro Shimoda
2023-05-29 18:36   ` Conor Dooley
2023-05-29 20:11     ` Andrew Lunn
2023-05-29 20:44       ` Conor Dooley [this message]
2023-05-30  0:19         ` Yoshihiro Shimoda
2023-05-30  7:22           ` Conor Dooley
2023-05-30 11:42             ` Yoshihiro Shimoda
2023-05-30 12:27   ` Krzysztof Kozlowski
2023-05-29  8:08 ` [PATCH net-next 2/5] net: renesas: rswitch: Rename GWCA related definitions Yoshihiro Shimoda
2023-05-30  7:17   ` Geert Uytterhoeven
2023-05-30 11:37     ` Yoshihiro Shimoda
2023-05-29  8:08 ` [PATCH net-next 3/5] net: renesas: rswitch: Alloc all 128 queues Yoshihiro Shimoda
2023-05-29  8:08 ` [PATCH net-next 4/5] net: renesas: rswitch: Use AXI_TLIM_N queues if a TX queue Yoshihiro Shimoda
2023-05-29  8:08 ` [PATCH net-next 5/5] net: renesas: rswitch: Use per-queue rate limiter Yoshihiro Shimoda
2023-05-29 20:37   ` kernel test robot
2023-05-29 23:45   ` kernel test robot
2023-05-30  7:33   ` Geert Uytterhoeven
2023-05-30 11:45     ` Yoshihiro Shimoda
2023-05-30 19:29   ` Simon Horman
2023-06-06  8:59     ` Yoshihiro Shimoda
2023-05-29 16:22 ` [PATCH net-next 0/5] net: renesas: rswitch: Improve performance of TX Andrew Lunn
2023-05-29 23:41   ` Yoshihiro Shimoda

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=20230529-ambiance-profile-d45c01caacc3@spud \
    --to=conor@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@google.com \
    --cc=geert+renesas@glider.be \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=kuba@kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=robh+dt@kernel.org \
    --cc=s.shtylyov@omp.ru \
    --cc=yoshihiro.shimoda.uh@renesas.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 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.