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] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220628221404.1444200-33-sean.anderson@seco.com>
Date:   Tue, 28 Jun 2022 18:14:01 -0400
From:   Sean Anderson <sean.anderson@...o.com>
To:     "David S . Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>,
        Madalin Bucur <madalin.bucur@....com>, netdev@...r.kernel.org
Cc:     Russell King <linux@...linux.org.uk>,
        Paolo Abeni <pabeni@...hat.com>,
        linux-arm-kernel@...ts.infradead.org,
        Eric Dumazet <edumazet@...gle.com>,
        linux-kernel@...r.kernel.org,
        Sean Anderson <sean.anderson@...o.com>,
        Benjamin Herrenschmidt <benh@...nel.crashing.org>,
        Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
        Li Yang <leoyang.li@....com>,
        Michael Ellerman <mpe@...erman.id.au>,
        Paul Mackerras <paulus@...ba.org>,
        Rob Herring <robh+dt@...nel.org>,
        Shawn Guo <shawnguo@...nel.org>, devicetree@...r.kernel.org,
        linuxppc-dev@...ts.ozlabs.org
Subject: [PATCH net-next v2 32/35] qoriq: Specify which MACs support RGMII

For more precise link mode support, we can add a property specifying
which MACs support RGMII. This silences the warning

	missing 'rgmii' property; assuming supported

Signed-off-by: Sean Anderson <sean.anderson@...o.com>
---

Changes in v2:
- Add rgmii property to all DPAA MACs

 .../boot/dts/freescale/fsl-ls1043-post.dtsi      |  7 +++++++
 .../boot/dts/freescale/fsl-ls1046-post.dtsi      |  8 ++++++++
 arch/powerpc/boot/dts/fsl/b4860si-post.dtsi      |  4 ++++
 arch/powerpc/boot/dts/fsl/b4si-post.dtsi         |  4 ++++
 arch/powerpc/boot/dts/fsl/t1023si-post.dtsi      |  4 ++++
 arch/powerpc/boot/dts/fsl/t1040si-post.dtsi      |  7 +++++++
 arch/powerpc/boot/dts/fsl/t2081si-post.dtsi      |  8 ++++++++
 arch/powerpc/boot/dts/fsl/t4240si-post.dtsi      | 16 ++++++++++++++++
 8 files changed, 58 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi
index d237162a8744..f12d860a2ed4 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1043-post.dtsi
@@ -24,23 +24,30 @@ &fman0 {
 
 	/* these aliases provide the FMan ports mapping */
 	enet0: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet1: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet2: ethernet@...00 {
+		rgmii = <1>;
 	};
 
 	enet3: ethernet@...00 {
+		rgmii = <1>;
 	};
 
 	enet4: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet5: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet6: ethernet@...00 {
+		rgmii = <0>;
 	};
 };
diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi
index d6caaea57d90..4bb314388a72 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1046-post.dtsi
@@ -23,26 +23,34 @@ &soc {
 &fman0 {
 	/* these aliases provide the FMan ports mapping */
 	enet0: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet1: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet2: ethernet@...00 {
+		rgmii = <1>;
 	};
 
 	enet3: ethernet@...00 {
+		rgmii = <1>;
 	};
 
 	enet4: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet5: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet6: ethernet@...00 {
+		rgmii = <0>;
 	};
 
 	enet7: ethernet@...00 {
+		rgmii = <0>;
 	};
 };
diff --git a/arch/powerpc/boot/dts/fsl/b4860si-post.dtsi b/arch/powerpc/boot/dts/fsl/b4860si-post.dtsi
index 868719821106..68f68f8cfa4e 100644
--- a/arch/powerpc/boot/dts/fsl/b4860si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4860si-post.dtsi
@@ -264,15 +264,19 @@ rcpm: global-utilities@...00 {
 /include/ "qoriq-fman3-0-10g-1.dtsi"
 	fman@...000 {
 		enet4: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet5: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet6: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet7: ethernet@...00 {
+			rgmii = <0>;
 		};
 	};
 
diff --git a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi b/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
index 4f044b41a776..5e50b96e6b52 100644
--- a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
@@ -465,15 +465,19 @@ muram@0 {
 		};
 
 		enet0: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet1: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet2: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet3: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		mdio@...00 {
diff --git a/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi b/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi
index d552044c5afc..e2a7bf643393 100644
--- a/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/t1023si-post.dtsi
@@ -508,15 +508,19 @@ sata@...000 {
 /include/ "qoriq-fman3-0-1g-3.dtsi"
 	fman@...000 {
 		enet0: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet1: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet2: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		enet3: ethernet@...00 {
+			rgmii = <1>;
 		};
 	};
 };
diff --git a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
index f58eb820eb5e..a585f5faaf9e 100644
--- a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi
@@ -606,18 +606,25 @@ sata@...000 {
 /include/ "qoriq-fman3-0-1g-4.dtsi"
 	fman@...000 {
 		enet0: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet1: ethernet@...00 {
+			rgmii = <1>;
+			mii;
 		};
 
 		enet2: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet3: ethernet@...00 {
+			rgmii = <1>;
+			mii;
 		};
 
 		enet4: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		mdio@...00 {
diff --git a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
index ecbb447920bc..f8a52ce0b590 100644
--- a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
@@ -619,27 +619,35 @@ usb1: usb@...000 {
 /include/ "qoriq-fman3-0-10g-1.dtsi"
 	fman@...000 {
 		enet0: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet1: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet2: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		enet3: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		enet4: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet5: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet6: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet7: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		mdio@...00 {
diff --git a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
index fcac73486d48..c0aa26db78b0 100644
--- a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
@@ -1018,27 +1018,35 @@ usb1: usb@...000 {
 /include/ "qoriq-fman3-0-10g-1.dtsi"
 	fman@...000 {
 		enet0: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet1: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet2: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet3: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet4: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		enet5: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet6: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet7: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		mdio@...00 {
@@ -1061,27 +1069,35 @@ mdio@...00 {
 /include/ "qoriq-fman3-1-10g-1.dtsi"
 	fman@...000 {
 		enet8: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet9: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet10: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet11: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet12: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		enet13: ethernet@...00 {
+			rgmii = <1>;
 		};
 
 		enet14: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		enet15: ethernet@...00 {
+			rgmii = <0>;
 		};
 
 		mdio@...00 {
-- 
2.35.1.1320.gc452695387.dirty

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ