[Intel-wired-lan] [PATCH] igb: properly start/stop PTP during suspend/resume

Jacob Keller jacob.e.keller at intel.com
Wed May 11 18:23:35 UTC 2016


Reported-by: Vidya Sagar <sagar.tv at gmail.com>
Signed-off-by: Jacob Keller <jacob.e.keller at intel.com>
---
 drivers/net/ethernet/intel/igb/igb_main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index 21727692bef6..8f740bc69fc3 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -7527,6 +7527,8 @@ static int __igb_shutdown(struct pci_dev *pdev, bool *enable_wake,
 	if (netif_running(netdev))
 		__igb_close(netdev, true);
 
+	igb_ptp_stop(adapter);
+
 	igb_clear_interrupt_scheme(adapter);
 
 #ifdef CONFIG_PM
@@ -7637,6 +7639,8 @@ static int igb_resume(struct device *dev)
 		return -ENOMEM;
 	}
 
+	igb_ptp_init(adapter);
+
 	igb_reset(adapter);
 
 	/* let the f/w know that the h/w is now under the control of the
-- 
2.8.1.493.g7b22612



More information about the Intel-wired-lan mailing list