]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab712e74b08355b269984199dac906880529542f
treee0d930a11c577fcab34932e37f3a292de28c95ee
parent7fc9f049e5ed8139426c6366620fb7ef86cb034c
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: 5ae19bcdc481 ('sfc: Add support for IEEE-1588 PTP')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ptp.c