linux/drivers/net/ethernet/freescale
Csókás Bence f79959220f 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>
2022-08-24 09:53:23 +01:00
..
dpaa net: dpaa: Fix <1G ethernet on LS1046ARDB 2022-08-19 16:21:08 -07:00
dpaa2 dpaa2-eth: trace the allocated address instead of page struct 2022-08-11 10:30:04 -07:00
enetc net: enetc: Use pci_release_region() to release some resources 2022-05-28 20:20:42 +01:00
fman Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-01-09 17:00:17 -08:00
fs_enet powerpc updates for 6.0 2022-08-06 16:38:17 -07:00
fec_main.c fec: Restart PPS after link state change 2022-08-24 09:53:23 +01:00
fec_mpc52xx_phy.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
fec_mpc52xx.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
fec_mpc52xx.h
fec_ptp.c fec: Restart PPS after link state change 2022-08-24 09:53:23 +01:00
fec.h fec: Restart PPS after link state change 2022-08-24 09:53:23 +01:00
fsl_pq_mdio.c net: freescale: convert comma to semicolon 2020-12-09 16:23:08 -08:00
gianfar_ethtool.c net: gianfar: add support for software TX timestamping 2022-06-30 21:09:05 -07:00
gianfar.c net: gianfar: add support for software TX timestamping 2022-06-30 21:09:05 -07:00
gianfar.h eth: gfar: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:42 +01:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
ucc_geth_ethtool.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
ucc_geth.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
ucc_geth.h ethernet: ucc_geth: simplify rx/tx allocations 2021-01-21 12:19:56 -08:00
xgmac_mdio.c net/fsl: xgmac_mdio: use correct format characters 2022-03-17 16:34:12 -07:00