]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9a34b9584cd14215ab7ea9a33e71c3a91943ad7b
treed75fb2d3212892a1cbea27980e0d6132a347b122
parent6e7c40bbfeec4ac0478de077bb56d6dd4c41aeb8
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: 86e0d62cd705 ("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