igb: re-use igb_ptp_reset in igb_ptp_init
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 24 May 2016 20:56:29 +0000 (13:56 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 29 Jun 2016 17:56:11 +0000 (10:56 -0700)
commit4f3ce71bb8d9c7591f25d3d8315249a250d208f0
tree52271b5cfe73113d2aa3e913b37cf2249d67e233
parent63737166a056fdcc83be46175ad4f63538279d7c
igb: re-use igb_ptp_reset in igb_ptp_init

Modify igb_ptp_init to take advantage of igb_ptp_reset, and remove
duplicated work that was occurring in both igb_ptp_reset and
igb_ptp_init.

In total, resetting the TSAUXC register, and resetting the system time
both happen in igb_ptp_reset already. igb_ptp_reset now also takes care
of starting the delayed work item for overflow checks, as well.

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>
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igb/igb_ptp.c