aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx
diff options
context:
space:
mode:
authorRobert Marko <robert.marko@sartura.hr>2020-11-26 13:54:34 +0100
committerPetr Štetiar <ynezz@true.cz>2020-12-23 16:36:08 +0100
commitfd033364f655f129b438fe67c87f95ef7b56fda1 (patch)
treead4746c99fd68583447d2c1c84d4b1d732a04ad2 /target/linux/ipq40xx
parent9d69505194145e20eeab73c646d9fa03dc5831e8 (diff)
downloadupstream-fd033364f655f129b438fe67c87f95ef7b56fda1.tar.gz
upstream-fd033364f655f129b438fe67c87f95ef7b56fda1.tar.bz2
upstream-fd033364f655f129b438fe67c87f95ef7b56fda1.zip
ipq40xx: net: ethernet: edma: use generic PHY print
Lets use the generic upstream phy_print_status() instead of doing something similar by hand. Before: ess_edma c080000.edma: eth1: GMAC Link is up with phy_speed=1000 After: ess_edma c080000.edma eth1: Link is Up - 1Gbps/Full - flow control rx/tx Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Diffstat (limited to 'target/linux/ipq40xx')
-rw-r--r--target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c b/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c
index ecbc946de9..80db1f0acb 100644
--- a/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c
+++ b/target/linux/ipq40xx/files/drivers/net/ethernet/qualcomm/essedma/edma.c
@@ -1310,7 +1310,7 @@ void edma_adjust_link(struct net_device *netdev)
status = edma_check_link(adapter);
if (status == __EDMA_LINKUP && adapter->link_state == __EDMA_LINKDOWN) {
- dev_info(&adapter->pdev->dev, "%s: GMAC Link is up with phy_speed=%d\n", netdev->name, phydev->speed);
+ phy_print_status(phydev);
adapter->link_state = __EDMA_LINKUP;
if (adapter->edma_cinfo->is_single_phy) {
ess_set_port_status_speed(adapter->edma_cinfo, phydev,
@@ -1320,7 +1320,7 @@ void edma_adjust_link(struct net_device *netdev)
if (netif_running(netdev))
netif_tx_wake_all_queues(netdev);
} else if (status == __EDMA_LINKDOWN && adapter->link_state == __EDMA_LINKUP) {
- dev_info(&adapter->pdev->dev, "%s: GMAC Link is down\n", netdev->name);
+ phy_print_status(phydev);
adapter->link_state = __EDMA_LINKDOWN;
netif_carrier_off(netdev);
netif_tx_stop_all_queues(netdev);