Skip to content

Commit 8646f7b

Browse files
jacob-kellerJeff Kirsher
authored andcommitted
igb: call igb_ptp_suspend during suspend/resume cycle
Properly stop the extra workqueue items and ensure that we resume cleanly. This is better than using igb_ptp_init and igb_ptp_stop since these functions destroy the PHC device, which will cause other problems if we do so. Since igb_ptp_reset now re-schedules the work-queue item we don't need an equivalent igb_ptp_resume in the resume workflow. Signed-off-by: Jacob Keller <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent e3f2350 commit 8646f7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/igb/igb_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7528,6 +7528,8 @@ static int __igb_shutdown(struct pci_dev *pdev, bool *enable_wake,
75287528
if (netif_running(netdev))
75297529
__igb_close(netdev, true);
75307530

7531+
igb_ptp_suspend(adapter);
7532+
75317533
igb_clear_interrupt_scheme(adapter);
75327534

75337535
#ifdef CONFIG_PM

0 commit comments

Comments
 (0)