]> 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)
commitb8d1560f8443bf3f2b7bb61ce61372437e65c3f6
treef836da0bbbb4a3095dd7f52cc44be1ecf066014a
parentef590a474caea3d9b2b08b57490613a75863b3f4
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