From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 20 Jul 2010 12:10:58 +0200 (CEST) Received: from mail-out.m-online.net ([212.18.0.9]:60924 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1491112Ab0GTKKz (ORCPT ); Tue, 20 Jul 2010 12:10:55 +0200 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 8B39A1C159EF; Tue, 20 Jul 2010 12:10:49 +0200 (CEST) X-Auth-Info: VK58hvfA5jIASSckRbSZeGn6krJsHbtwUumToa+AfMs= Received: from lancy.mylan.de (host-62-245-203-10.customer.m-online.net [62.245.203.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mnet-online.de (Postfix) with ESMTPSA id BE6201C001F0; Tue, 20 Jul 2010 12:10:48 +0200 (CEST) Message-ID: <4C45762E.70909@grandegger.com> Date: Tue, 20 Jul 2010 12:10:54 +0200 From: Wolfgang Grandegger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4 MIME-Version: 1.0 To: Manuel Lauss CC: Linux-MIPS , Wolfgang Grandegger , Florian Fainelli Subject: Re: [RFC PATCH v2] au1000_eth: get ethernet address from platform_data References: <1279544125-28104-1-git-send-email-manuel.lauss@googlemail.com> In-Reply-To: <1279544125-28104-1-git-send-email-manuel.lauss@googlemail.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 27426 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: wg@grandegger.com Precedence: bulk X-list: linux-mips 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 ". Wolfgang,