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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <PAXPR04MB8510DD93523FF4551BBE682988F3A@PAXPR04MB8510.eurprd04.prod.outlook.com>
Date: Wed, 22 Oct 2025 01:51:49 +0000
From: Wei Fang <wei.fang@....com>
To: Rob Herring <robh@...nel.org>
CC: "krzk+dt@...nel.org" <krzk+dt@...nel.org>, "conor+dt@...nel.org"
	<conor+dt@...nel.org>, Claudiu Manoil <claudiu.manoil@....com>, Vladimir
 Oltean <vladimir.oltean@....com>, Clark Wang <xiaoning.wang@....com>, Frank
 Li <frank.li@....com>, "andrew+netdev@...n.ch" <andrew+netdev@...n.ch>,
	"davem@...emloft.net" <davem@...emloft.net>, "edumazet@...gle.com"
	<edumazet@...gle.com>, "kuba@...nel.org" <kuba@...nel.org>,
	"pabeni@...hat.com" <pabeni@...hat.com>, "richardcochran@...il.com"
	<richardcochran@...il.com>, "imx@...ts.linux.dev" <imx@...ts.linux.dev>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: RE: [PATCH net-next 3/8] dt-bindings: net: ethernet-controller:
 remove the enum values of speed

> On Thu, Oct 16, 2025 at 06:20:14PM +0800, Wei Fang wrote:
> > Some fixed-link devices have uncommon link speeds. For example, the CPU
> > port of NXP NETC switch is connected to an ENETC (Ethernet Controller),
> > they are fully integrated into the NETC IP and connected through the
> > 'pseudo link'. The link speed varies depending on the NETC version. For
> > example, the speed of NETC v4.3 is 2680 Mbps, other versions may be 8
> > Gbps or 12.5 Gbps or other speeds. There is no need and pointless to add
> > these values to ethernet-controller.yaml. Therefore, remove these enum
> > values so that when performing dtbs_check, no warnings are reported for
> > the uncommon values.
> 
> Every binding that used this was relying on these constraints. So you've
> got to move them into the individual bindings. I'd leave a minimum and
> maximum here.

I realized that if we change to an uncommon speed, the phylink driver also
needs to be modified appropriately, otherwise the driver will report a warning,
although the warning does not affect usage. Modifying phylink driver is not the
purpose of this patch set, and I don't have a good idea at the moment, so I will
remove this patch. Thanks.

> 
> >
> > Signed-off-by: Wei Fang <wei.fang@....com>
> > ---
> >  Documentation/devicetree/bindings/net/ethernet-controller.yaml | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml
> b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
> > index 1bafd687dcb1..7fa02d58c208 100644
> > --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml
> > +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml
> > @@ -177,7 +177,6 @@ properties:
> >              description:
> >                Link speed.
> >              $ref: /schemas/types.yaml#/definitions/uint32
> > -            enum: [10, 100, 1000, 2500, 5000, 10000]
> >
> >            full-duplex:
> >              $ref: /schemas/types.yaml#/definitions/flag
> > --
> > 2.34.1
> >

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ