]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9e6193add4473c52e422bd928e1bdf5c2f42d36d
treee078025a329894bfc741c4a585597975ae5db87c
parent8378a70cab579a1efb045812afcfc4c7480cb9df
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