linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: mxs: Add ethernetX to macX aliases
@ 2012-09-13 11:23 Marek Vasut
  2012-09-17  6:28 ` Shawn Guo
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2012-09-13 11:23 UTC (permalink / raw)
  To: linux-arm-kernel

Add ethernet0 and ethernet1 aliases into the imx28.dtsi file, as
that is what most bootloaders use to pass MAC address. The bootloader
seeks for this alias and adds "mac-address" and "local-mac-address"
properties to the aliased node. This fixes issues with FEC having
NULL MAC address when update_fec_mac_prop() wasn't called. And
not all boards call update_fec_mac_prop() .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
---
 arch/arm/boot/dts/imx28.dtsi |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi
index 14ea47d..0e78d5b 100644
--- a/arch/arm/boot/dts/imx28.dtsi
+++ b/arch/arm/boot/dts/imx28.dtsi
@@ -27,6 +27,8 @@
 		serial2 = &auart2;
 		serial3 = &auart3;
 		serial4 = &auart4;
+		ethernet0 = &mac0;
+		ethernet1 = &mac1;
 	};
 
 	cpus {
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] ARM: dts: mxs: Add ethernetX to macX aliases
  2012-09-13 11:23 [PATCH] ARM: dts: mxs: Add ethernetX to macX aliases Marek Vasut
@ 2012-09-17  6:28 ` Shawn Guo
  0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2012-09-17  6:28 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 13, 2012 at 01:23:22PM +0200, Marek Vasut wrote:
> Add ethernet0 and ethernet1 aliases into the imx28.dtsi file, as
> that is what most bootloaders use to pass MAC address. The bootloader
> seeks for this alias and adds "mac-address" and "local-mac-address"
> properties to the aliased node. This fixes issues with FEC having
> NULL MAC address when update_fec_mac_prop() wasn't called. And
> not all boards call update_fec_mac_prop() .
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Fabio Estevam <fabio.estevam@freescale.com>
> Cc: Shawn Guo <shawn.guo@linaro.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-17  6:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-13 11:23 [PATCH] ARM: dts: mxs: Add ethernetX to macX aliases Marek Vasut
2012-09-17  6:28 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).