Skip to content
Snippets Groups Projects
Verified Commit 119a1969 authored by Karel Koci's avatar Karel Koci :metal:
Browse files

patches: openwrt: reenable second port to switch

It seems that when we disable eth0 that leads to switch port 6 it causes
kernel panic on null pointer dereference. This is probably symptom of
some other error but for now we just won't disable this port and that
helps.
parent afe1c30f
No related branches found
No related tags found
No related merge requests found
From 140c7fa1d217aa241311a8ed98072dc4022c5c2c Mon Sep 17 00:00:00 2001
From a437bfb963630c2b9dd0588031a896afffdffaa0 Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <Michal@Hrusecky.net>
Date: Fri, 22 Feb 2019 08:30:39 +0100
Subject: [PATCH] Turris Omnia: Improved suppport
---
...nia-Add-separate-DTS-for-SFP-support.patch | 234 +++++++++++++
...Omnia-second-ethernet-connection-to-.patch | 39 +++
.../8890-turris-omnia-led-driver.patch | 323 ++++++++++++++++++
...91-turris-omnia-custom-led-functions.patch | 269 +++++++++++++++
...8892-turris-omnia-enable-leds-in-dts.patch | 102 ++++++
4 files changed, 928 insertions(+)
5 files changed, 967 insertions(+)
create mode 100644 target/linux/mvebu/patches-4.14/8888-Turris-Omnia-Add-separate-DTS-for-SFP-support.patch
create mode 100644 target/linux/mvebu/patches-4.14/8889-Reenable-Turris-Omnia-second-ethernet-connection-to-.patch
create mode 100644 target/linux/mvebu/patches-4.14/8890-turris-omnia-led-driver.patch
create mode 100644 target/linux/mvebu/patches-4.14/8891-turris-omnia-custom-led-functions.patch
create mode 100644 target/linux/mvebu/patches-4.14/8892-turris-omnia-enable-leds-in-dts.patch
......@@ -254,6 +256,51 @@ index 0000000000..6f98c5c131
+--
+2.21.0
+
diff --git a/target/linux/mvebu/patches-4.14/8889-Reenable-Turris-Omnia-second-ethernet-connection-to-.patch b/target/linux/mvebu/patches-4.14/8889-Reenable-Turris-Omnia-second-ethernet-connection-to-.patch
new file mode 100644
index 0000000000..fc7f13eafc
--- /dev/null
+++ b/target/linux/mvebu/patches-4.14/8889-Reenable-Turris-Omnia-second-ethernet-connection-to-.patch
@@ -0,0 +1,39 @@
+From a7c04d8029e3f4c8b4e01b73502e885494132d8c Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
+Date: Mon, 11 Mar 2019 13:21:04 +0100
+Subject: [PATCH] Reenable Turris Omnia second ethernet connection to switch
+
+When we disable this link we not only cause all links to be shifted
+down it also causes for some reason null pointer dereference kernel
+panic on phy0 reconfiguration.
+---
+ arch/arm/boot/dts/armada-385-turris-omnia.dtsi | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/arch/arm/boot/dts/armada-385-turris-omnia.dtsi b/arch/arm/boot/dts/armada-385-turris-omnia.dtsi
+index e216c653e013..17146f7af49b 100644
+--- a/arch/arm/boot/dts/armada-385-turris-omnia.dtsi
++++ b/arch/arm/boot/dts/armada-385-turris-omnia.dtsi
+@@ -115,9 +115,8 @@
+ };
+ };
+
+-/* Disable eth0 unless there is DSA driver supporting two CPU ports. */
+ /* Connected to 88E6176 switch, port 6 */
+-/* &eth0 {
++&eth0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&ge0_rgmii_pins>;
+ status = "okay";
+@@ -127,7 +126,7 @@
+ speed = <1000>;
+ full-duplex;
+ };
+-}; */
++};
+
+ /* Connected to 88E6176 switch, port 5 */
+ &eth1 {
+--
+2.21.0
+
diff --git a/target/linux/mvebu/patches-4.14/8890-turris-omnia-led-driver.patch b/target/linux/mvebu/patches-4.14/8890-turris-omnia-led-driver.patch
new file mode 100644
index 0000000000..477370d4b1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment