aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mediatek
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-06-19 15:37:03 +0200
committerDavid S. Miller <davem@davemloft.net>2017-06-20 13:40:34 -0400
commit5969c42768ed6d19e8a61d1ac60e5c8bee8fe9d0 (patch)
tree8fc9c8141e64773769abdd614bbb49e195678688 /drivers/net/ethernet/mediatek
parentMerge branch 'vxlan-cleanup-and-IPv6-link-local-support' (diff)
downloadlinux-dev-5969c42768ed6d19e8a61d1ac60e5c8bee8fe9d0.tar.xz
linux-dev-5969c42768ed6d19e8a61d1ac60e5c8bee8fe9d0.zip
net-next: mediatek: print phy status changes for non DSA GMACs
Currently PHY status changes are only printed for DSA ports. This patch adds code to also print status changes for non-fixed links. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek')
-rw-r--r--drivers/net/ethernet/mediatek/mtk_eth_soc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 962975d192d1..24d5f1cad7f4 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -221,6 +221,9 @@ static void mtk_phy_link_adjust(struct net_device *dev)
netif_carrier_on(dev);
else
netif_carrier_off(dev);
+
+ if (!of_phy_is_fixed_link(mac->of_node))
+ phy_print_status(dev->phydev);
}
static int mtk_phy_connect_node(struct mtk_eth *eth, struct mtk_mac *mac,