[PATCH 0/5] net: fec: fix external PTP PHY support

From: Sergey Organov
Date: Mon Jul 06 2020 - 10:26:42 EST


This is a collection of otherwise independent fixes that got developed
out of attempt to use DP83640 PTP PHY connected to built-in fec1 (that
has its own PTP support) of the iMX 6SX micro-controller.

The first patch in the series is actual fix for appeared problems,
while the rest are small style or behavior improvements made during
development of the fix.

NOTE: the patches are developed and tested on 4.9.146, and rebased on
top of recent 'master', where, besides visual inspection, I only
tested that they do compile.

NOTE: for more background, please refer here:

https://lore.kernel.org/netdev/87r1uqtybr.fsf@xxxxxxxxxxx/

Sergey Organov (5):
net: fec: properly support external PTP PHY for hardware time stamping
net: fec: enable to use PPS feature without time stamping
net: fec: initialize clock with 0 rather than current kernel time
net: fec: get rid of redundant code in fec_ptp_set()
net: fec: replace snprintf() with strlcpy() in fec_ptp_init()

drivers/net/ethernet/freescale/fec.h | 1 +
drivers/net/ethernet/freescale/fec_main.c | 19 +++++++++++++++----
drivers/net/ethernet/freescale/fec_ptp.c | 24 ++++++++++++++----------
3 files changed, 30 insertions(+), 14 deletions(-)

--
2.10.0.1.g57b01a3