]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit70aebb49290d5c7ea37825f50ac7588ec19f8cde
tree047885744485c5c9d25106d3600093cea5ef57cc
parent023c5caa31e6357893874a3fe7ef186975982515
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