Skip to content
Commit f7995922 authored by Csókás Bence's avatar Csókás Bence Committed by David S. Miller
Browse files

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: default avatarCsókás Bence <csokas.bence@prolan.hu>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d5485d9d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment