stmmac: fix ptp header for GMAC3 hw timestamp
authorMario Molitor <mario_molitor@web.de>
Thu, 8 Jun 2017 20:41:02 +0000 (22:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:26 +0000 (19:48 +0200)
commit3f7b3c7a792c8d74bcdf6dfca0189c9d2065508f
treeb38c8dd5ce72ba1255f6b599b8cf02e508f01778
parent9606743ca7f8f45b0e589e5ff8dd93a3e49dcdd1
stmmac: fix ptp header for GMAC3 hw timestamp

[ Upstream commit fd6720aefde06eacf17404eed2cad65c6ec103e1 ]

According the CYCLON V documention only the bit 16 of snaptypesel should
set.
(more information see Table 17-20 (cv_5v4.pdf) :
 Timestamp Snapshot Dependency on Register Bits)

Fixes: d2042052a0aa ("stmmac: update the PTP header file")
Signed-off-by: Mario Molitor <mario_molitor@web.de>
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_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.h