Skip to content

Commit 0089b74

Browse files
ezequielgarciadavem330
authored andcommitted
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>
1 parent 31aa860 commit 0089b74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/marvell/mvneta.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,11 +2558,10 @@ static void mvneta_adjust_link(struct net_device *ndev)
25582558
MVNETA_GMAC_FORCE_LINK_DOWN);
25592559
mvreg_write(pp, MVNETA_GMAC_AUTONEG_CONFIG, val);
25602560
mvneta_port_up(pp);
2561-
netdev_info(pp->dev, "link up\n");
25622561
} else {
25632562
mvneta_port_down(pp);
2564-
netdev_info(pp->dev, "link down\n");
25652563
}
2564+
phy_print_status(phydev);
25662565
}
25672566
}
25682567

0 commit comments

Comments
 (0)