]> git.baikalelectronics.ru Git - kernel.git/commit
net: igb: fix the start time for periodic output signals
authorRichard Cochran <richardcochran@gmail.com>
Thu, 11 Jun 2015 12:51:30 +0000 (14:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 23:04:02 +0000 (16:04 -0700)
commitc5d69162de0ef2dfc1df2e4028b57fef6f4f6946
treeb66c06d6b9e183b1cfda3f9d5c86e25bcd4aa298
parent893bc1f75f5ff76e535e937d253ce489aaa36af4
net: igb: fix the start time for periodic output signals

When programming the start of a periodic output, the code wrongly places
the seconds value into the "low" register and the nanoseconds into the
"high" register.  Even though this is backwards, it slipped through my
testing, because the re-arming code in the interrupt service routine is
correct, and the signal does appear starting with the second edge.

This patch fixes the issue by programming the registers correctly.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/igb/igb_ptp.c