mvneta: implement SGMII-based in-band link state signaling
authorStas Sergeev <stsp@list.ru>
Wed, 1 Apr 2015 17:32:49 +0000 (20:32 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Apr 2015 19:08:20 +0000 (15:08 -0400)
commit898b2970e2c91e4543b579998922822894325866
tree11065a9cf7570f455b747eab454dfc9b48916175
parenta3bebdce4135a44d09e96ba66c40797c8f9fa902
mvneta: implement SGMII-based in-band link state signaling

When MDIO bus is unavailable (common setup for SGMII), the in-band
signaling must be used to correctly track link state.
This patch enables the in-band status delivery for link state changes, namely:
- link up/down
- link speed
- duplex full/half
fixed_phy_update_state() is used to update phy status.

CC: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
CC: Florian Fainelli <f.fainelli@gmail.com>
CC: netdev@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Stas Sergeev <stsp@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c