]> git.itanic.dy.fi Git - linux-stable/blobdiff - drivers/net/ethernet/renesas/sh_eth.c
net: sh_eth: Fix PHY state warning splat during system resume
[linux-stable] / drivers / net / ethernet / renesas / sh_eth.c
index 67ade78fb7671c4a8bbaae0e02b067bd351a3beb..7fd8828d3a8461690b0771bab6a7027585900084 100644 (file)
@@ -2029,6 +2029,8 @@ static int sh_eth_phy_init(struct net_device *ndev)
        if (mdp->cd->register_type != SH_ETH_REG_GIGABIT)
                phy_set_max_speed(phydev, SPEED_100);
 
+       /* Indicate that the MAC is responsible for managing PHY PM */
+       phydev->mac_managed_pm = true;
        phy_attached_info(phydev);
 
        return 0;