]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c57e7b749cbe52f9d7363be20cb056da4513965
treef5b09a47646973bb384a1086ba86a5319222b579
parent64eb76756d3f9ee7739e6a78c1864d8540211efa
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