phy: marvell: fix LED configuration via marvell,reg-init
authorClemens Gruber <clemens.gruber@pqgruber.com>
Sat, 11 Jun 2016 15:21:26 +0000 (17:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jun 2016 19:23:03 +0000 (15:23 -0400)
commitfdecf36fcefa9f48c2f2de21c8176f1a8ce2c960
tree126c50828db8a17acd57fbb6db4472890b0284db
parentd941ebe88a411aa281cc80477a93feb931a1b50b
phy: marvell: fix LED configuration via marvell,reg-init

Configuring the PHY LED registers for the Marvell 88E1510 and others is
not possible, because regardless of the values in marvell,reg-init, it
is later overridden in m88e1121_config_aneg with a non-standard default.

This patch moves that default configuration to .config_init to allow
setting the LED configuration through marvell,reg-init in the device
tree, which should override said default if it exists.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c