diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2014-10-31 16:57:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-31 21:11:23 +0100 |
commit | 0089b745df2e1b0bee0b1bb1a7f62a7cec961066 (patch) | |
tree | 5f223435fdce9b2152a2ca6e1eb182362ca7bacf /drivers/net/ethernet/marvell/mvneta.c | |
parent | bonding: add bond_tx_drop() helper (diff) | |
download | linux-0089b745df2e1b0bee0b1bb1a7f62a7cec961066.tar.xz linux-0089b745df2e1b0bee0b1bb1a7f62a7cec961066.zip |
ethernet: mvneta: Use PHY status standard message
Use phy_print_status() to report a change in the PHY status.
The current message is not verbose enough, so this commit improves
it by using the generic status message.
After this change, the kernel reports PHY status down and up events as:
mvneta f1070000.ethernet eth0: Link is Down
mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mvneta.c')
-rw-r--r-- | drivers/net/ethernet/marvell/mvneta.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index ade067de1689..ccc3ce2e8c8c 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -2558,11 +2558,10 @@ static void mvneta_adjust_link(struct net_device *ndev) MVNETA_GMAC_FORCE_LINK_DOWN); mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val); mvneta_port_up(pp); - netdev_info(pp->dev, "link up\n"); } else { mvneta_port_down(pp); - netdev_info(pp->dev, "link down\n"); } + phy_print_status(phydev); } } |