net: stmmac: Fix TX timestamp calculation
authorFredrik Hallenberg <megahallon@gmail.com>
Mon, 18 Dec 2017 22:33:59 +0000 (23:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:27 +0000 (10:24 +0100)
commit06dcd2d77a0108b82d4131aa76333d94b66c6cfc
tree78582a1bc65c0e1c6eb78caf22aa358a16fb8cc1
parent3eeac1d10a1bd21ec210e77b9f3b08d2dc7e1d1f
net: stmmac: Fix TX timestamp calculation

[ Upstream commit 200922c93f008e03ddc804c6dacdf26ca1ba86d7 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c