powerpc/fsl/dts: add fsl,erratum-a011043
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Wed, 22 Jan 2020 13:20:28 +0000 (15:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 21:22:51 +0000 (21:22 +0000)
[ Upstream commit 73d527aef68f7644e59f22ce7f9ac75e7b533aea ]

Add fsl,erratum-a011043 to internal MDIO buses.
Software may get false read error when reading internal
PCS registers through MDIO. As a workaround, all internal
MDIO accesses should ignore the MDIO_CFG[MDIO_RD_ER] bit.

Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
18 files changed:
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-0-best-effort.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-0.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-1-best-effort.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-1.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-1g-0.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-1g-1.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-1g-2.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-1g-3.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-1g-4.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-0-1g-5.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-10g-0.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-10g-1.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-1g-0.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-1g-1.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-1g-2.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-1g-3.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-1g-4.dtsi
arch/powerpc/boot/dts/fsl/qoriq-fman3-1-1g-5.dtsi

index e1a961f..baa0c50 100644 (file)
@@ -63,6 +63,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe1000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy0: ethernet-phy@0 {
                        reg = <0x0>;
index c288f3c..9309560 100644 (file)
@@ -60,6 +60,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xf1000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy6: ethernet-phy@0 {
                        reg = <0x0>;
index 94f3e71..ff4bd38 100644 (file)
@@ -63,6 +63,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe3000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy1: ethernet-phy@0 {
                        reg = <0x0>;
index 94a7698..1fa38ed 100644 (file)
@@ -60,6 +60,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xf3000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy7: ethernet-phy@0 {
                        reg = <0x0>;
index b5ff5f7..a8cc978 100644 (file)
@@ -59,6 +59,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe1000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy0: ethernet-phy@0 {
                        reg = <0x0>;
index ee44182..8b8bd70 100644 (file)
@@ -59,6 +59,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe3000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy1: ethernet-phy@0 {
                        reg = <0x0>;
index f05f0d7..619c880 100644 (file)
@@ -59,6 +59,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe5000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy2: ethernet-phy@0 {
                        reg = <0x0>;
index a9114ec..d7ebb73 100644 (file)
@@ -59,6 +59,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe7000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy3: ethernet-phy@0 {
                        reg = <0x0>;
index 44dd00a..b151d69 100644 (file)
@@ -59,6 +59,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe9000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy4: ethernet-phy@0 {
                        reg = <0x0>;
index 5b1b84b..adc0ae0 100644 (file)
@@ -59,6 +59,7 @@ fman@400000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xeb000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy5: ethernet-phy@0 {
                        reg = <0x0>;
index 0e1daae..435047e 100644 (file)
@@ -60,6 +60,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xf1000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy14: ethernet-phy@0 {
                        reg = <0x0>;
index 68c5ef7..c098657 100644 (file)
@@ -60,6 +60,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xf3000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy15: ethernet-phy@0 {
                        reg = <0x0>;
index 605363c..9d06824 100644 (file)
@@ -59,6 +59,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe1000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy8: ethernet-phy@0 {
                        reg = <0x0>;
index 1955dfa..70e9477 100644 (file)
@@ -59,6 +59,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe3000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy9: ethernet-phy@0 {
                        reg = <0x0>;
index 2c14764..ad96e65 100644 (file)
@@ -59,6 +59,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe5000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy10: ethernet-phy@0 {
                        reg = <0x0>;
index b8b541f..034bc4b 100644 (file)
@@ -59,6 +59,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe7000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy11: ethernet-phy@0 {
                        reg = <0x0>;
index 4b2cfdd..93ca23d 100644 (file)
@@ -59,6 +59,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xe9000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy12: ethernet-phy@0 {
                        reg = <0x0>;
index 0a52ddf..23b3117 100644 (file)
@@ -59,6 +59,7 @@ fman@500000 {
                #size-cells = <0>;
                compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
                reg = <0xeb000 0x1000>;
+               fsl,erratum-a011043; /* must ignore read errors */
 
                pcsphy13: ethernet-phy@0 {
                        reg = <0x0>;