aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ptp.c
diff options
context:
space:
mode:
authorLaurence Evans <levans@solarflare.com>2013-03-07 11:46:58 +0000
committerBen Hutchings <bhutchings@solarflare.com>2013-08-27 22:27:02 +0100
commit977a5d5d32f4797ace5ef65ee3f2232a1c88a274 (patch)
treeae1d9a9e6348a3017521ab604a82cd260ab1a498 /drivers/net/ethernet/sfc/ptp.c
parentsfc: PTP MCDI requests need to initialise periph ID field (diff)
downloadlinux-dev-977a5d5d32f4797ace5ef65ee3f2232a1c88a274.tar.xz
linux-dev-977a5d5d32f4797ace5ef65ee3f2232a1c88a274.zip
sfc: Add a function pointer to abstract write of host time into NIC shared memory
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/ptp.c')
-rw-r--r--drivers/net/ethernet/sfc/ptp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c
index 4de2f8febd59..c60cabb6ff05 100644
--- a/drivers/net/ethernet/sfc/ptp.c
+++ b/drivers/net/ethernet/sfc/ptp.c
@@ -390,8 +390,7 @@ static void efx_ptp_send_times(struct efx_nic *efx,
host_time = (now.ts_real.tv_sec << MC_NANOSECOND_BITS |
now.ts_real.tv_nsec);
/* Update host time in NIC memory */
- _efx_writed(efx, cpu_to_le32(host_time),
- FR_CZ_MC_TREG_SMEM + MC_SMEM_P0_PTP_TIME_OFST);
+ efx->type->ptp_write_host_time(efx, host_time);
}
*last_time = now;
}