0065-arm64-allwinner-a64-pine64-add-missing-ethernet0-ali.patch 1.1 KB

1234567891011121314151617181920212223242526272829
  1. From dff751c68904cf587d918cfb6b2f5b0112f73bc9 Mon Sep 17 00:00:00 2001
  2. From: Icenowy Zheng <[email protected]>
  3. Date: Sat, 22 Jul 2017 10:28:51 +0800
  4. Subject: arm64: allwinner: a64: pine64: add missing ethernet0 alias
  5. The EMAC Ethernet controller was enabled, but an accompanying alias
  6. was not added. This results in unstable numbering if other Ethernet
  7. devices, such as a USB dongle, are present. Also, the bootloader uses
  8. the alias to assign a generated stable MAC address to the device node.
  9. Signed-off-by: Icenowy Zheng <[email protected]>
  10. Signed-off-by: Maxime Ripard <[email protected]>
  11. Fixes: 970239437493 ("arm64: allwinner: pine64: Enable dwmac-sun8i")
  12. [[email protected]: Rewrite commit log as fixing a previous patch with Fixes]
  13. Signed-off-by: Chen-Yu Tsai <[email protected]>
  14. ---
  15. arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 1 +
  16. 1 file changed, 1 insertion(+)
  17. --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
  18. +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
  19. @@ -51,6 +51,7 @@
  20. compatible = "pine64,pine64", "allwinner,sun50i-a64";
  21. aliases {
  22. + ethernet0 = &emac;
  23. serial0 = &uart0;
  24. };