]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Add support for external trigger timestamping
authorTan Tee Min <tee.min.tan@intel.com>
Wed, 14 Apr 2021 00:16:17 +0000 (08:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2021 19:57:45 +0000 (12:57 -0700)
commit3ba8879d89dc77f6da3b1059deb4113b7df00f46
treed052a0738def1cd83b584580ed7b030a29da0869
parent1ad5a9dea8dbc18cd4edf65d587aa57395faf645
net: stmmac: Add support for external trigger timestamping

The Synopsis MAC controller supports auxiliary snapshot feature that
allows user to store a snapshot of the system time based on an external
event.

This patch add supports to the above mentioned feature. Users will be
able to triggered capturing the time snapshot from user-space using
application such as testptp or any other applications that uses the
PTP_EXTTS_REQUEST ioctl request.

Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Tan Tee Min <tee.min.tan@intel.com>
Co-developed-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h
include/linux/stmmac.h