aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/patches-5.10/701-honor_sgmii_node_device_tree_status.patch
diff options
context:
space:
mode:
authorStijn Tintel <stijn@linux-ipv6.be>2021-04-18 14:53:41 +0300
committerStijn Tintel <stijn@linux-ipv6.be>2021-04-18 17:00:30 +0300
commitde6080fa8e638c946e9e4f9d36ae8e124c701fb0 (patch)
treed6d5d60cb9ca1f23ed8868b722afc88465ad747b /target/linux/octeon/patches-5.10/701-honor_sgmii_node_device_tree_status.patch
parent75c01ee2b92c6702202f89f900428a7f5c6709ad (diff)
downloadupstream-de6080fa8e638c946e9e4f9d36ae8e124c701fb0.tar.gz
upstream-de6080fa8e638c946e9e4f9d36ae8e124c701fb0.tar.bz2
upstream-de6080fa8e638c946e9e4f9d36ae8e124c701fb0.zip
octeon: add 5.10 as testing kernel
Remove upstreamed parts from 100-ubnt_edgerouter2_support.patch. Compile and runtime tested on Ubiquiti EdgeRouter Lite. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Diffstat (limited to 'target/linux/octeon/patches-5.10/701-honor_sgmii_node_device_tree_status.patch')
-rw-r--r--target/linux/octeon/patches-5.10/701-honor_sgmii_node_device_tree_status.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/octeon/patches-5.10/701-honor_sgmii_node_device_tree_status.patch b/target/linux/octeon/patches-5.10/701-honor_sgmii_node_device_tree_status.patch
new file mode 100644
index 0000000000..d11503c2c1
--- /dev/null
+++ b/target/linux/octeon/patches-5.10/701-honor_sgmii_node_device_tree_status.patch
@@ -0,0 +1,27 @@
+From: Roman Kuzmitskii <damex.pp@icloud.com>
+Date: Sun, 01 Nov 2020 19:00:00 +0000
+Subject: [PATCH] staging: octeon: sgmii to honor disabled dt node status
+
+With this patch, sgmii interface device tree node could be disabled and
+that disabled interface will not be unnecessarily initialized.
+
+It solves the problem with Octeon boards that have 8 sgmii or more ports
+initialized but have nothing connected to them.
+
+Tested-by: Johannes Kimmel <fff@bareminimum.eu>
+Signed-off-by: Roman Kuzmitskii <damex.pp@icloud.com>
+--- a/drivers/staging/octeon/ethernet.c
++++ b/drivers/staging/octeon/ethernet.c
+@@ -883,8 +883,10 @@ static int cvm_oct_probe(struct platform
+
+ case CVMX_HELPER_INTERFACE_MODE_SGMII:
+ priv->phy_mode = PHY_INTERFACE_MODE_SGMII;
+- dev->netdev_ops = &cvm_oct_sgmii_netdev_ops;
+- strscpy(dev->name, "eth%d", sizeof(dev->name));
++ if (of_device_is_available(priv->of_node)) {
++ dev->netdev_ops = &cvm_oct_sgmii_netdev_ops;
++ strscpy(dev->name, "eth%d", sizeof(dev->name));
++ }
+ break;
+
+ case CVMX_HELPER_INTERFACE_MODE_SPI: