]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
igb: call igb_ptp_suspend during suspend/resume cycle
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 24 May 2016 20:56:31 +0000 (13:56 -0700)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Thu, 22 Jun 2017 21:28:30 +0000 (14:28 -0700)
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 <jacob.e.keller@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 8646f7b4cdf2d0557e718c4524a3e31455b92ad7)

Orabug: 26325580

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/igb/igb_main.c

index ba774a655aa578f73e98520124d685b8fa42d44f..34d7a654353703246149e17083d52763995015f8 100644 (file)
@@ -7466,6 +7466,8 @@ static int __igb_shutdown(struct pci_dev *pdev, bool *enable_wake,
        if (netif_running(netdev))
                __igb_close(netdev, true);
 
+       igb_ptp_suspend(adapter);
+
        igb_clear_interrupt_scheme(adapter);
 
 #ifdef CONFIG_PM