]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
igb: call igb_ptp_suspend during suspend/resume cycle
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 13 Feb 2017 02:12:11 +0000 (10:12 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 8 Mar 2017 13:35:47 +0000 (10:35 -0300)
BugLink: http://bugs.launchpad.net/bugs/1662763
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)
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/net/ethernet/intel/igb/igb_main.c

index af46fcf8a50e014598a0443f10a719fe7f25f133..b01382f92250e2117f3febb07bef9f4d9a8615d5 100644 (file)
@@ -7414,6 +7414,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