]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.20.16/arm-dts-sun8i-h3-add-ethernet0-alias-to-beelink-x2.patch
Linux 4.20.16
[thirdparty/kernel/stable-queue.git] / releases / 4.20.16 / arm-dts-sun8i-h3-add-ethernet0-alias-to-beelink-x2.patch
CommitLineData
941c5db0
SL
1From 9e35eaee5c526b2fe44b47a2b7dbfe5127e19a63 Mon Sep 17 00:00:00 2001
2From: Jernej Skrabec <jernej.skrabec@siol.net>
3Date: Tue, 8 Jan 2019 20:18:40 +0100
4Subject: ARM: dts: sun8i: h3: Add ethernet0 alias to Beelink X2
5
6[ Upstream commit cc4bddade114b696ab27c1a77cfc7040151306da ]
7
8Because "ethernet0" alias is missing, U-Boot doesn't generate board
9specific MAC address. Effect of this is random MAC address every boot
10and thus new IP address is assigned to the board.
11
12Fix this by adding alias.
13
14Fixes: 7389172fc3ed ("ARM: dts: sun8i: h3: Enable dwmac-sun8i on the Beelink X2")
15Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
16[Maxime: Removed unneeded comment]
17Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
18Signed-off-by: Sasha Levin <sashal@kernel.org>
19---
20 arch/arm/boot/dts/sun8i-h3-beelink-x2.dts | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
24index 5d23667dc2d2..25540b7694d5 100644
25--- a/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
26+++ b/arch/arm/boot/dts/sun8i-h3-beelink-x2.dts
27@@ -53,7 +53,7 @@
28
29 aliases {
30 serial0 = &uart0;
31- /* ethernet0 is the H3 emac, defined in sun8i-h3.dtsi */
32+ ethernet0 = &emac;
33 ethernet1 = &sdiowifi;
34 };
35
36--
372.19.1
38