]> 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)
commitd866bbf5f788eba4cc4fcdb5066648cc8b2674d4
treed052a0738def1cd83b584580ed7b030a29da0869
parentee000f578062b7925370296c4bc9e4ddc353af70
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