]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: au1000_eth: Get ethernet address from platform_data
authorManuel Lauss <manuel.lauss@googlemail.com>
Wed, 21 Jul 2010 12:30:50 +0000 (14:30 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 5 Aug 2010 12:26:09 +0000 (13:26 +0100)
commitde7ced6e6f28af3b2e6412f53e02f5a0a81c8f46
treefb015e299f7355bce687baa157837608dffe762a
parent7ea7ddb8d381acee8e0a7b50421fce4c5a5a9da4
MIPS: au1000_eth: Get ethernet address from platform_data

au1000_eth uses firmware calls to get a valid MAC address, and changes
it depending on platform device id.  This patch moves this logic out of
the driver into the platform device registration part, where boards with
supported chips can use whatever firmware interface they need; the default
implementation maintains compatibility with existing, YAMON-based firmware.

Tested-by: Wolfgang Grandegger <wg@denx.de>
Acked-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
To: Linux-MIPS <linux-mips@linux-mips.org>
Cc: netdev@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/1481/
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/platform.c
arch/mips/include/asm/mach-au1x00/au1xxx_eth.h
drivers/net/au1000_eth.c