We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc40071 commit 3c37ad7Copy full SHA for 3c37ad7
drivers/net/ethernet/freescale/fec_ptp.c
@@ -235,13 +235,7 @@ static int fec_ptp_pps_perout(struct fec_enet_private *fep)
235
timecounter_read(&fep->tc);
236
237
/* Get the current ptp hardware time counter */
238
- temp_val = readl(fep->hwp + FEC_ATIME_CTRL);
239
- temp_val |= FEC_T_CTRL_CAPTURE;
240
- writel(temp_val, fep->hwp + FEC_ATIME_CTRL);
241
- if (fep->quirks & FEC_QUIRK_BUG_CAPTURE)
242
- udelay(1);
243
-
244
- ptp_hc = readl(fep->hwp + FEC_ATIME);
+ ptp_hc = fec_ptp_read(&fep->cc);
245
246
/* Convert the ptp local counter to 1588 timestamp */
247
curr_time = timecounter_cyc2time(&fep->tc, ptp_hc);
0 commit comments