From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Cochran Subject: [PATCH net-next 0/2] [RFC] igb: ptp hardware clock Date: Tue, 13 Dec 2011 04:00:33 +0100 Message-ID: Cc: e1000-devel@lists.sourceforge.net, Jacob Keller , Jeff Kirsher , John Ronciak , John Stultz , Thomas Gleixner To: Return-path: Received: from mail-ee0-f46.google.com ([74.125.83.46]:59737 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753468Ab1LMDAl (ORCPT ); Mon, 12 Dec 2011 22:00:41 -0500 Received: by eekc4 with SMTP id c4so1908953eek.19 for ; Mon, 12 Dec 2011 19:00:40 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: This patch series implements a PHC driver for the Intel 82576 and 82580 devices, as part of the igb driver. The first patch adds the PHC driver code as a new source module but does not link it into the main igb driver. Because the system time counter is not so very wide, the code implements an overflow counter in software. Every read operation maintains the overflow counter, as does a "delayed work" watchdog. Only the base clock operations are implemented. The hardware does have some ancillary features, but these can be easily added later. The second patch removes the timecompare code and links in the new functions. I have tested the 82580 with good results. However, I don't have the 82576 and so would appreciate testing and feedback. Thanks, Richard Richard Cochran (2): igb: add PTP Hardware Clock code igb: offer a PTP Hardware Clock instead of the timecompare method drivers/net/ethernet/intel/igb/Makefile | 2 +- drivers/net/ethernet/intel/igb/igb.h | 21 +- drivers/net/ethernet/intel/igb/igb_main.c | 167 +----------- drivers/net/ethernet/intel/igb/igb_ptp.c | 450 +++++++++++++++++++++++++++++ 4 files changed, 469 insertions(+), 171 deletions(-) create mode 100644 drivers/net/ethernet/intel/igb/igb_ptp.c -- 1.7.2.5