lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YjnjgVchVwskX+kL@robh.at.kernel.org>
Date:   Tue, 22 Mar 2022 09:56:01 -0500
From:   Rob Herring <robh@...nel.org>
To:     Prasanna Vengateshan <prasanna.vengateshan@...rochip.com>
Cc:     andrew@...n.ch, netdev@...r.kernel.org, olteanv@...il.com,
        UNGLinuxDriver@...rochip.com, woojung.huh@...rochip.com,
        hkallweit1@...il.com, linux@...linux.org.uk, davem@...emloft.net,
        kuba@...nel.org, linux-kernel@...r.kernel.org,
        vivien.didelot@...il.com, f.fainelli@...il.com,
        devicetree@...r.kernel.org
Subject: Re: [PATCH v9 net-next 02/11] dt-bindings: net: add mdio property

On Tue, Mar 22, 2022 at 08:16:00PM +0530, Prasanna Vengateshan wrote:
> On Mon, 2022-03-21 at 18:27 -0500, Rob Herring wrote:
> > EXTERNAL EMAIL: Do not click links or open attachments unless you know the
> > content is safe
> > 
> > On Fri, Mar 18, 2022 at 02:25:31PM +0530, Prasanna Vengateshan wrote:
> > > mdio bus is applicable to any switch hence it is added as per the below
> > > request,
> > > https://lore.kernel.org/netdev/1300f84832ef1c43ecb9edb311fb817e3aab5420.camel@microchip.com/
> > 
> > Quoting that thread:
> > 
> > > Yes indeed, since this is a common property of all DSA switches, it can
> > > be defined or not depending on whether the switch does have an internal
> > > MDIO bus controller or not.
> > 
> > Whether or not a switch has an MDIO controller or not is a property of
> > that switch and therefore 'mdio' needs to be documented in those switch
> > bindings.
> > 
> > > 
> > > Signed-off-by: Prasanna Vengateshan <prasanna.vengateshan@...rochip.com>
> > > ---
> > >  Documentation/devicetree/bindings/net/dsa/dsa.yaml | 4 ++++
> > >  1 file changed, 4 insertions(+)
> > > 
> > > diff --git a/Documentation/devicetree/bindings/net/dsa/dsa.yaml
> > > b/Documentation/devicetree/bindings/net/dsa/dsa.yaml
> > > index b9d48e357e77..0f8426e219eb 100644
> > > --- a/Documentation/devicetree/bindings/net/dsa/dsa.yaml
> > > +++ b/Documentation/devicetree/bindings/net/dsa/dsa.yaml
> > > @@ -31,6 +31,10 @@ properties:
> > >        switch 1. <1 0> is cluster 1, switch 0. A switch not part of any
> > > cluster
> > >        (single device hanging off a CPU port) must not specify this property
> > >      $ref: /schemas/types.yaml#/definitions/uint32-array
> > > +
> > > +  mdio:
> > > +    $ref: /schemas/net/mdio.yaml#
> > > +    unevaluatedProperties: false
> > 
> > From a schema standpoint, this bans every switch from adding additional
> > properties under an mdio node. Not likely what you want.
> > 
> > Rob
> 
> Thanks for the feedback. Do you mean that the 'unevaluatedProperties: false' to
> be removed, so that the additional properties can be added? or mdio is not
> supposed to be defined in the dsa.yaml ?

'mdio' should not be defined here.

Rob

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ