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)
commit200922c93f008e03ddc804c6dacdf26ca1ba86d7
treef836da0bbbb4a3095dd7f52cc44be1ecf066014a
parent3db096011722fd8717e57687ae94b6917a11c9cc
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