summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorCsókás Bence <csokas.bence@prolan.hu>2022-08-22 10:10:52 +0200
committerDavid S. Miller <davem@davemloft.net>2022-08-24 09:53:23 +0100
commitf79959220fa5fbda939592bf91c7a9ea90419040 (patch)
tree78b7f0a580e019138316ca0cad88a4d10369a254 /net
parentd5485d9dd24e1d04e5509916515260186eb1455c (diff)
downloadlinux-f79959220fa5fbda939592bf91c7a9ea90419040.tar.bz2
fec: Restart PPS after link state change
On link state change, the controller gets reset, causing PPS to drop out and the PHC to lose its time and calibration. So we restart it if needed, restoring calibration and time registers. Changes since v2: * Add `fec_ptp_save_state()`/`fec_ptp_restore_state()` * Use `ktime_get_real_ns()` * Use `BIT()` macro Changes since v1: * More ECR #define's * Stop PPS in `fec_ptp_stop()` Signed-off-by: Csókás Bence <csokas.bence@prolan.hu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions