mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
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>
This commit is contained in:
parent
cf67bebecb
commit
5969c42768
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user