]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitf4da56529da602010979e8497d1f02eaf5df8883
treed052a0738def1cd83b584580ed7b030a29da0869
parent945c6ff851d8cc41571a8bb5735fb40a925a7aa2
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