]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
net-next: mediatek: print phy status changes for non DSA GMACs
authorJohn Crispin <john@phrozen.org>
Mon, 19 Jun 2017 13:37:03 +0000 (15:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 17:40:34 +0000 (13:40 -0400)
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>
drivers/net/ethernet/mediatek/mtk_eth_soc.c

index 962975d192d10c45f348453f4954071e5c2df03a..24d5f1cad7f4cc35d5d7160268c4f35dc2959580 100644 (file)
@@ -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,