diff options
author | Tan Tee Min <tee.min.tan@intel.com> | 2021-04-14 08:16:17 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-14 12:57:45 -0700 |
commit | f4da56529da602010979e8497d1f02eaf5df8883 (patch) | |
tree | d052a0738def1cd83b584580ed7b030a29da0869 /drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |
parent | 945c6ff851d8cc41571a8bb5735fb40a925a7aa2 (diff) | |
download | lwn-f4da56529da602010979e8497d1f02eaf5df8883.tar.gz lwn-f4da56529da602010979e8497d1f02eaf5df8883.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index e3e22200a4fd..3a5ca5833ce1 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -5687,6 +5687,8 @@ static void stmmac_common_interrupt(struct stmmac_priv *priv) else netif_carrier_off(priv->dev); } + + stmmac_timestamp_interrupt(priv, priv); } } |