]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: extract the hardware setup from the ixgbe_ptp_set_ts_config
authorJacob Keller <jacob.e.keller@intel.com>
Fri, 16 May 2014 05:12:25 +0000 (05:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 27 May 2014 06:53:10 +0000 (23:53 -0700)
commitc763be475b307216daa6634b02831c1cd8bdcb8d
treeb56ff1fa2e2101bcb96b5188dd0fce0ad732b7da
parent735a8468e64151310d90a622598dbaa547c893c2
ixgbe: extract the hardware setup from the ixgbe_ptp_set_ts_config

Currently all of the hardware setup logic for the PTP hardware bits is
buried inside of the ioctl which sets the timestamp configuration. This
makes it hard to use this logic in other places (primarily reset), and
this means we can't restore current timestamp mode upon a MAC reset.
Extracting this logic into a separate function will enable future work
for the ixgbe_ptp_reset function.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c