diff options
author | Wong Vee Khee <vee.khee.wong@linux.intel.com> | 2022-07-14 15:54:27 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-18 11:14:35 +0100 |
commit | 76c16d3e19446deea98b7883f261758b96b8781a (patch) | |
tree | f5b09a47646973bb384a1086ba86a5319222b579 /include | |
parent | 11052589cf5c0bab3b4884d423d5f60c38fcf25d (diff) |
net: stmmac: switch to use interrupt for hw crosstimestamping
Using current implementation of polling mode, there is high chances we
will hit into timeout error when running phc2sys. Hence, update the
implementation of hardware crosstimestamping to use the MAC interrupt
service routine instead of polling for TSIS bit in the MAC Timestamp
Interrupt Status register to be set.
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 29917850f079..8df475db88c0 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -260,6 +260,7 @@ struct plat_stmmacenet_data { bool has_crossts; int int_snapshot_num; int ext_snapshot_num; + bool int_snapshot_en; bool ext_snapshot_en; bool multi_msi_en; int msi_mac_vec; |