sfc: Maintain current frequency adjustment when applying a time offset
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 5 Dec 2013 17:24:06 +0000 (17:24 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 6 Dec 2013 22:27:51 +0000 (22:27 +0000)
commitcd6fe65e923175e4f2e9fb585b1d78c6bf580fc6
treee0d930a11c577fcab34932e37f3a292de28c95ee
parent2ea4dc28a5bcec408e01a8772763871638a5ec79
sfc: Maintain current frequency adjustment when applying a time offset

There is a single MCDI PTP operation for setting the frequency
adjustment and applying a time offset to the hardware clock.  When
applying a time offset we should not change the frequency adjustment.

These two operations can now be requested separately but this requires
a flash firmware update.  Keep using the single operation, but
remember and repeat the previous frequency adjustment.

Fixes: 7c236c43b838 ('sfc: Add support for IEEE-1588 PTP')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ptp.c