From 0f0dc2e6c17839e0d3fceb5ebd4741002a760678 Mon Sep 17 00:00:00 2001 From: Sushil Kumar Singh Date: Wed, 14 Jun 2023 16:00:48 +0000 Subject: [PATCH] nvethernet: Cancel set speed workqueue on SC7 entry set speed work function is not cancelled on system suspend fix this by cancelling the work queue function Bug 4167378 Change-Id: I2c065011a830470f690441b2c841893479b361fb Signed-off-by: Sushil Kumar Singh Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2921347 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/net/ethernet/nvidia/nvethernet/ether_linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c index 0f0e13cb..b3ff1ca1 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c +++ b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.c @@ -6919,6 +6919,7 @@ static int ether_suspend_noirq(struct device *dev) /* stop workqueue */ cancel_delayed_work_sync(&pdata->tx_ts_work); + cancel_delayed_work_sync(&pdata->set_speed_work); /* Stop workqueue while DUT is going to suspend state */ ether_stats_work_queue_stop(pdata);