fec: Fix timer capture timing in `fec_ptp_enable_pps()`
authorCsókás Bence <csokas.bence@prolan.hu>
Thu, 11 Aug 2022 10:13:49 +0000 (12:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 13 Aug 2022 00:23:41 +0000 (17:23 -0700)
commit61d5e2a251fb20c2c5e998c3f1d52ed6d5360319
treed75fb2d3212892a1cbea27980e0d6132a347b122
parent40b4ac880e21d917da7f3752332fa57564a4c202
fec: Fix timer capture timing in `fec_ptp_enable_pps()`

Code reimplements functionality already in `fec_ptp_read()`,
but misses check for FEC_QUIRK_BUG_CAPTURE. Replace with function call.

Fixes: 28b5f058cf1d ("net: fec: ptp: fix convergence issue to support LinuxPTP stack")
Signed-off-by: Csókás Bence <csokas.bence@prolan.hu>
Link: https://lore.kernel.org/r/20220811101348.13755-1-csokas.bence@prolan.hu
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_ptp.c