ARM: kirkwood: fix to retain gbe MAC addresses for DT kernels
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Wed, 30 Jan 2013 20:29:58 +0000 (21:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 20:10:54 +0000 (13:10 -0700)
commit48a8c582c126b6dc18e165b240b29d7319e13739
tree2aaa65da6fecd74422ce02e731b89a5564a82332
parentf2ebfa449f40a0dc0ff35ab35a35744c4d249b82
ARM: kirkwood: fix to retain gbe MAC addresses for DT kernels

commit 7bf5b408b419fc849578e6e9fbd221bf43638eb6 upstream.

The ethernet controller used on kirkwood looses its MAC address
register contents when the corresponding clock is gated. As soon as
mv643xx_eth is built as module, the clock gets gated and when loading
the module, the MAC address is gone.

Proper DT support for the mv643xx_eth driver is expected soon, so we add
a workaround to always enable ge0/ge1 clocks on kirkwood. This workaround
is also already used on non-DT kirkwood kernels.

Reported-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Tested-by: Simon Baatz <gmbnomis@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-kirkwood/board-dt.c