]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Fix PTP X540 SDP alignment code for PPS signal
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 1 Aug 2012 07:12:25 +0000 (07:12 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 3 Oct 2012 14:47:46 +0000 (07:47 -0700)
commitde7bb3b3592fefa651cf50d1a816dc0000dcb851
tree8e397b7a0323758483cabfffb604331b1f4469f8
parent9126a53dda3aa8d34f01111a2bcd1bd501d979a6
ixgbe: Fix PTP X540 SDP alignment code for PPS signal

This patch fixes a bug in the method used for calculating the trigger
alignment for SDP0 when enabling a PPS output on the X540. The alignment math
wasn't properly taking into account the overflow cyclecounter, and was
misaligning the pin triggers so that two X540 devices synced properly had
mis-aligned SDP pins. This patch fixes the math to calculate the correct
seconds alignment for the PPS signal.

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