]> git.baikalelectronics.ru Git - kernel.git/commit
igb: add PTP Hardware Clock code
authorRichard Cochran <richardcochran@gmail.com>
Fri, 16 Mar 2012 10:55:32 +0000 (10:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 4 Apr 2012 07:34:23 +0000 (00:34 -0700)
commitf786f8db86db233336be1293702af505c5390884
treecf51fbc9bb7062047ba9096d69f6b6bea82f68c8
parente5ce2a245576bcdd36a566e9383ace05abd0dd6f
igb: add PTP Hardware Clock code

This patch adds a source file implementing a PHC. Only the basic
clock operations have been implemented, although the hardware
would offer some ancillary functions. The code is fairly self
contained and is not yet used in the main igb driver.

Every timestamp and clock read operation must consult the overflow
counter to form a correct time value. Access to the counter is
protected by a spin lock, and the counter is implemented using the
standard cyclecounter/timecounter code.

Signed-off-by: Richard Cochran <richardcochran@gmail.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.h
drivers/net/ethernet/intel/igb/igb_ptp.c [new file with mode: 0644]