[Top] [All Lists]

Re: [RFC PATCH v2] au1000_eth: get ethernet address from platform_data

To: Manuel Lauss <>
Subject: Re: [RFC PATCH v2] au1000_eth: get ethernet address from platform_data
From: Wolfgang Grandegger <>
Date: Tue, 20 Jul 2010 12:10:54 +0200
Cc: Linux-MIPS <>, Wolfgang Grandegger <>, Florian Fainelli <>
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4
Hi Manuel,

On 07/19/2010 02:55 PM, Manuel Lauss wrote:
> Modify au1000_eth to receive an ethernet address from platform data,
> or choose a random one.
> The default address is usually provided by the firmware; modify
> platform device registration to use it if the board code has not
> already overridden it.
> Cc: Wolfgang Grandegger <>
> Cc: Florian Fainelli <>
> Signed-off-by: Manuel Lauss <>
> ---
> v2: diffed against linus-git, on top of Wolfgang's patch
>     "mips/alchemy: define eth platform devices in the correct order"
>     This one should actually apply cleanly.
> IMHO a device driver should not call firmware-specific functions
> (be it MIPS-style prom_get_*(), OF properties or whatever) to
> get missing information.  Instead this should be done by the
> platform code which sets up the device.  This patch does just that.
> Compile-tested only.  Florian, Wolfgang: could you please give this
> a try on your boards?  If it works and you agree to it, I'll
> resubmit it also to linux-netdev.  Thank you! (I don't have
> accessible au1000-eth hardware).

I gave the patch a try. The kernel builds and runs fine. The eth's are
realized in the correct order and do work properly. Feel free to add my
"Tested-by: Wolfgang Grandegger <>".


<Prev in Thread] Current Thread [Next in Thread>