linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Mechanism for platform-specific parsing of ATAGs
@ 2013-06-05  6:40 Thomas Petazzoni
  2013-06-05  6:40 ` [PATCH 1/5] ARM: mvebu: set aliases for ethernet controllers Thomas Petazzoni
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Thomas Petazzoni @ 2013-06-05  6:40 UTC (permalink / raw)
  To: linux-arm-kernel

Russell, Nicolas,

Following your comments on the patch that was adding the parsing of a
Marvell-specific ATAG in the generic atags_to_fdt.c, here is a new
proposal that allows this parsing to be entirely contained into code
specific to the Marvell platform.

The idea, implement in 'PATCH 2/5' is that the atags_to_fdt code
copies the ATAGs contents into the /chosen/atags DT property. This
adds 6 lines of code in atags_to_fdt.c that are completely generic,
and avoid cluttering this part of the code with platform-specific
ATAGs parsing.

Once this is in place, PATCH 5/5 modifies the Armada 370/XP specific
platform code to use this /chosen/atags DT property to find the
Marvell-specific ATAG, and assign the MAC addresses properly. In order
to assign the MAC addresses, an OF helper function
of_set_mac_address() is introduced in PATCH 3/5, and the mach-mxs code
is refactored to also use it (in PATCH 4/5).

What do you think about this approach? I believe it is much more
contained in the platform-specific code, and hopefully should address
your concerns.

Thanks!

Thomas

PS: Jason, I noticed you already merged 'ARM: mvebu: set aliases for
ethernet controllers', but I kept it here to expose the full solution.

Thomas Petazzoni (4):
  arm: preserve ATAGS in /chosen/atags in the Device Tree
  of: net: introduce a of_set_mac_address() helper function
  arm: mxs: use the newly introduced of_set_mac_address() helper
  arm: mvebu: parse ATAGS to find the network interfaces MAC addresses

Willy Tarreau (1):
  ARM: mvebu: set aliases for ethernet controllers

 arch/arm/boot/compressed/atags_to_fdt.c  |  6 ++++
 arch/arm/boot/dts/armada-370-xp.dtsi     |  9 ++++--
 arch/arm/boot/dts/armada-xp-mv78460.dtsi |  3 +-
 arch/arm/boot/dts/armada-xp.dtsi         |  6 +++-
 arch/arm/mach-mvebu/armada-370-xp.c      | 52 ++++++++++++++++++++++++++++++++
 arch/arm/mach-mvebu/armada-370-xp.h      | 13 ++++++++
 arch/arm/mach-mxs/mach-mxs.c             | 22 ++------------
 drivers/of/of_net.c                      | 36 ++++++++++++++++++++++
 include/linux/of_net.h                   |  6 ++++
 9 files changed, 130 insertions(+), 23 deletions(-)

-- 
1.8.1.2

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

end of thread, other threads:[~2013-06-08 18:59 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-05  6:40 [PATCH 0/5] Mechanism for platform-specific parsing of ATAGs Thomas Petazzoni
2013-06-05  6:40 ` [PATCH 1/5] ARM: mvebu: set aliases for ethernet controllers Thomas Petazzoni
2013-06-05  6:40 ` [PATCH 2/5] arm: preserve ATAGS in /chosen/atags in the Device Tree Thomas Petazzoni
2013-06-05 13:27   ` Jason Cooper
2013-06-06 12:28   ` Thomas Petazzoni
2013-06-06 17:27     ` Nicolas Pitre
2013-06-07  9:21       ` Thomas Petazzoni
2013-06-07 14:32         ` Jason Cooper
2013-06-07 17:16           ` Thomas Petazzoni
2013-06-07 17:59             ` Jason Cooper
2013-06-08  4:50             ` Nicolas Pitre
2013-06-08 14:54               ` Jason Cooper
2013-06-08  7:59         ` Russell King - ARM Linux
2013-06-08 18:54         ` Rob Herring
2013-06-08 18:59           ` Russell King - ARM Linux
2013-06-05  6:40 ` [PATCH 3/5] of: net: introduce a of_set_mac_address() helper function Thomas Petazzoni
2013-06-05  7:13   ` Andrew Lunn
2013-06-05  7:18     ` Thomas Petazzoni
2013-06-05 11:58   ` Grant Likely
2013-06-05  6:40 ` [PATCH 4/5] arm: mxs: use the newly introduced of_set_mac_address() helper Thomas Petazzoni
2013-06-05  6:40 ` [PATCH 5/5] arm: mvebu: parse ATAGS to find the network interfaces MAC addresses Thomas Petazzoni

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).