nvethernet: Skip the device resume via mdio bus

Enable "phydev->mac_managed_pm" so that device
won't be resumed for second time via mdio bus

Bug 4071996

Change-Id: Ib35bc1459bd882a2b940d4f28bd9d2c76719bfc7
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901540
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Revanth Kumar Uppala
2023-05-10 22:10:48 +05:30
committed by mobile promotions
parent e975e7bba9
commit 98b2b3ff4f

View File

@@ -1231,6 +1231,8 @@ static int ether_phy_init(struct net_device *dev)
return -ENODEV;
}
/* Skip the device resume via mdio bus */
phydev->mac_managed_pm = true;
pdata->phydev = phydev;
return 0;