sfc: Add support for SFC9100 timestamp format
authorLaurence Evans <levans@solarflare.com>
Wed, 4 Dec 2013 23:47:56 +0000 (23:47 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:07:09 +0000 (22:07 +0000)
commita6f73460b592404cca4ceafa69a835a61cdc20d8
treee078025a329894bfc741c4a585597975ae5db87c
parentdfd8d581fbdce9f3b4777a7c59d28ca35ed194be
sfc: Add support for SFC9100 timestamp format

The clock minor tick on the SFC9100 family is 2^-27 s, not 1 ns.
There are also various pipeline delays which we need to correct for
when interpreting timestamps.

We query the firmware for the clock format and corrections at run-time.

[bwh: Combined and rebased several changes]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ptp.c