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 <sushilkumars@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2921347
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Sushil Kumar Singh
2023-06-14 16:00:48 +00:00
committed by mobile promotions
parent 4c0d72dba6
commit 0f0dc2e6c1

View File

@@ -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);