]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix TX timestamp calculation
authorFredrik Hallenberg <megahallon@gmail.com>
Mon, 18 Dec 2017 22:33:59 +0000 (23:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 19:12:14 +0000 (14:12 -0500)
commit086d74c9c78d3140356a790ed9c42a3923e39097
treef836da0bbbb4a3095dd7f52cc44be1ecf066014a
parent9b7f5d6ac620ee654d8fe8c00713156d146fe831
net: stmmac: Fix TX timestamp calculation

When using GMAC4 the value written in PTP_SSIR should be shifted however
the shifted value is also used in subsequent calculations which results
in a bad timestamp value.

Signed-off-by: Fredrik Hallenberg <megahallon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c