diff options
author | Ilias Apalodimas <[email protected]> | 2019-02-05 14:15:20 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-02-06 17:28:15 -0800 |
commit | 7d8e249f393a1aca30bde876e932401d2c78bc9f (patch) | |
tree | 3db680fc9b758ddc9a7883b74fceeceb88432062 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | bcd3d9d9246f35c62c5d652d20569a76dbdf4bd1 (diff) |
net: stmmac: fix ptp timestamping on Rx on gmac4
The current driver only enables Pdelay_Req and Pdelay_Resp when
HWTSTAMP_FILTER_PTP_V2_EVENT, HWTSTAMP_FILTER_PTP_V1_L4_EVENT or
HWTSTAMP_FILTER_PTP_V2_L4_EVENT is requested. This results in ptp sync on
slave mode to report 'received SYNC without timestamp' when using ptp4l.
Although the hardware can support Sync, Pdelay_Req and Pdelay_resp by
setting bit14 annd bits 17/16 to 01 this leaves Delay_Req timestamps out.
Fix this by enabling all event and general messages timestamps.
This includes SYNC, Follow_Up, Delay_Req, Delay_Resp, Pdelay_Req,
Pdelay_Resp and Pdelay_Resp_Follow_Up messages.
Signed-off-by: Ilias Apalodimas <[email protected]>
Acked-by: Jose Abreu <[email protected]>
Tested-by: Alexandre TORGUE <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions