]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit8208367371b7f581dd13fe8bf28f8d7f17f4bf32
tree8e397b7a0323758483cabfffb604331b1f4469f8
parent864499449f256e32815575a9b860267ebefa6d70
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