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: <1432926814-22648-4-git-send-email-andrew@lunn.ch>
Date:	Fri, 29 May 2015 21:13:34 +0200
From:	Andrew Lunn <andrew@...n.ch>
To:	netdev <netdev@...r.kernel.org>
Cc:	Florian Fainelli <f.fainelli@...il.com>,
	Guenter Roeck <linux@...ck-us.net>, mathieu@...eaurora.org,
	Andrew Lunn <andrew@...n.ch>
Subject: [PATCH RFC 3/3] kirkwood: dir665: Enable the second Ethernet to the Switch

The Dlink DIR665 has two host Ethernet interfaces connected to the
switch. Now that the DSA core and mv88e6171 driver supports multiple
CPU ports, enable the second interface.

Signed-off-by: Andrew Lunn <andrew@...n.ch>
---
 arch/arm/boot/dts/kirkwood-dir665.dts | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/kirkwood-dir665.dts b/arch/arm/boot/dts/kirkwood-dir665.dts
index 786959ee9cbe..2ecb6acb1905 100644
--- a/arch/arm/boot/dts/kirkwood-dir665.dts
+++ b/arch/arm/boot/dts/kirkwood-dir665.dts
@@ -219,31 +219,43 @@
 			port@0 {
 				reg = <0>;
 				label = "lan4";
+				cpu = <&cpu1>;
 			};
 
 			port@1 {
 			       reg = <1>;
 			       label = "lan3";
+			       cpu = <&cpu0>;
 			};
 
 			port@2 {
 			       reg = <2>;
 			       label = "lan2";
+			       cpu = <&cpu1>;
 			};
 
 			port@3 {
 			       reg = <3>;
 			       label = "lan1";
+			       cpu = <&cpu0>;
 			};
 
 			port@4 {
 				reg = <4>;
 				label = "wan";
+				cpu = <&cpu1>;
 			};
 
-			port@6 {
+			cpu0: port@5 {
+			       reg = <5>;
+			       label = "cpu";
+			       ethernet = <&eth1port>;
+			};
+
+			cpu1: port@6 {
 			       reg = <6>;
 			       label = "cpu";
+			       ethernet = <&eth0port>;
 			};
 		};
 	};
@@ -268,7 +280,13 @@
  * single CPU port. So leave this port disabled to avoid confusion. */
 
 &eth1 {
-	status = "disabled";
+	status = "okay";
+
+	ethernet1-port@0 {
+		speed = <1000>;
+		duplex = <1>;
+		local-mac-address = [c8 be 19 61 de 55];
+	};
 };
 
 /* There is no battery on the boards, so the RTC does not keep time
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ