net: stmmac: switch to use interrupt for hw crosstimestamping
authorWong Vee Khee <vee.khee.wong@linux.intel.com>
Thu, 14 Jul 2022 07:54:27 +0000 (15:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 10:14:35 +0000 (11:14 +0100)
commit76c16d3e19446deea98b7883f261758b96b8781a
treef5b09a47646973bb384a1086ba86a5319222b579
parent11052589cf5c0bab3b4884d423d5f60c38fcf25d
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>
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
drivers/net/ethernet/stmicro/stmmac/dwmac4.h
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
drivers/net/ethernet/stmicro/stmmac/stmmac.h
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c
include/linux/stmmac.h