OSDN Git Service

stmmac: intel: add cross time-stamping freq difference adjustment
authorWong Vee Khee <vee.khee.wong@linux.intel.com>
Tue, 30 Mar 2021 02:46:53 +0000 (10:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Mar 2021 20:38:46 +0000 (13:38 -0700)
commit1c137d4777b5b66c64854ba469ab0650ff0dc5bd
tree047885744485c5c9d25106d3600093cea5ef57cc
parent5979415d00d42fd66d4227a34a6fa528003ae88a
stmmac: intel: add cross time-stamping freq difference adjustment

Cross time-stamping mechanism used in certain instance of Intel mGbE
may run at different clock frequency in comparison to the clock
frequency used by processor, so we introduce cross T/S frequency
adjustment to ensure TSC calculation is correct when processor got the
cross time-stamps.

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