mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-19 01:21:54 +08:00
genet set link state
This commit is contained in:
@@ -101,9 +101,12 @@ static void bcmgenet_mac_config(struct net_device *dev)
|
||||
void bcmgenet_mii_setup(struct net_device *dev)
|
||||
{
|
||||
struct phy_device *phydev = dev->phydev;
|
||||
struct bcmgenet_priv *priv = netdev_priv(dev);
|
||||
|
||||
if (phydev->link)
|
||||
bcmgenet_mac_config(dev);
|
||||
if (priv->ecdev)
|
||||
ecdev_set_link(priv->ecdev, phydev->link);
|
||||
phy_print_status(phydev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user