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:23:23 +0000 (10:23 +0100)
commit9d0858e71219ca4657ebeff7eea92067fbaf9b77
tree3d28a478d877ab1af0a9a239a5456ba8e29dfe19
parent1148fee2173c03718b1f3ce47d67eb09c165368f
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@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c