[E1000-devel] [PATCH net-next V3 1/2] igb: add PTP Hardware Clock code

2012-01-07 Thread Richard Cochran
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 t

[E1000-devel] [PATCH net-next V3 2/2] igb: offer a PTP Hardware Clock instead of the timecompare method

2012-01-07 Thread Richard Cochran
This commit removes the legacy timecompare code from the igb driver and offers a tunable PHC instead. Signed-off-by: Richard Cochran --- drivers/net/ethernet/intel/igb/Makefile |2 +- drivers/net/ethernet/intel/igb/igb.h | 13 ++- drivers/net/ethernet/intel/igb/igb_main.c | 167 +--

[E1000-devel] [PATCH net-next V3 0/2] igb: ptp hardware clock

2012-01-07 Thread Richard Cochran
* ChangeLog ** V3 - Driver compiles even without CONFIG_PTP_1588_CLOCK. - Timestamping always works, even when PTP code missing or fails. ** V2 - Fixed wrong bit shifting in the 82576 code. - Explained the timestamp locking with a comment in the code. - Preserved the comments from th