From 98b2b3ff4f329a5a382029b17c1562c3d2a4229b Mon Sep 17 00:00:00 2001 From: Revanth Kumar Uppala Date: Wed, 10 May 2023 22:10:48 +0530 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2901540 Reviewed-by: Bhadram Varka Reviewed-by: Laxman Dewangan Reviewed-by: Narayan Reddy GVS: Gerrit_Virtual_Submit --- drivers/net/ethernet/nvidia/nvethernet/ether_linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c index a227a514..ce825851 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c +++ b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c @@ -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;