arm64: dts: ls1028a: mark internal links between Felix and ENETC as capable of flow...
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 29 Sep 2021 11:52:26 +0000 (14:52 +0300)
committerShawn Guo <shawnguo@kernel.org>
Tue, 5 Oct 2021 06:01:14 +0000 (14:01 +0800)
The internal Ethernet switch suffers from erratum A-050484 ("Ethernet
flow control not functional on L2 switch NPI port when XFH is used").
XFH stands for "Extraction Frame Header" - which basically means the
default "ocelot" DSA tagging protocol.

However, the switch supports one other tagging protocol - "ocelot-8021q",
and this is not subject to the erratum above. So describe the hardware
ability to pass PAUSE frames in the device tree, and let the driver
figure out whether it should use flow control on the CPU port or not,
depending on whether the "ocelot" or "ocelot-8021q" tagging protocol is
being used.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi

index c10c84d9495d8135962f96a0aea35569d804ab69..a13b998b2fbe96b215e4f2b945d39c2254e62ad6 100644 (file)
                                fixed-link {
                                        speed = <2500>;
                                        full-duplex;
+                                       pause;
                                };
                        };
 
                                                fixed-link {
                                                        speed = <2500>;
                                                        full-duplex;
+                                                       pause;
                                                };
                                        };
 
                                                fixed-link {
                                                        speed = <1000>;
                                                        full-duplex;
+                                                       pause;
                                                };
                                        };
                                };
                                fixed-link {
                                        speed = <1000>;
                                        full-duplex;
+                                       pause;
                                };
                        };