]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: allow PTP 224.0.0.107 to be timestamped
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 6 Jul 2018 18:44:45 +0000 (21:44 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Jul 2018 12:22:57 +0000 (21:22 +0900)
commit152cefaf4171e9d5f35e469abeb157458c673a90
tree4a879f1d9154a594da1af97ccff4b5888fa24c1a
parent7fe24d8ae3e08c2185c5ab653fc2ce22b43bf2c2
net: ethernet: ti: cpsw: allow PTP 224.0.0.107 to be timestamped

Tested on AM572x with cpsw v1.15 for PTP sync and delay_req messages.
It doesn't work on cpsw v1.12, so added only for cpsw v > 1.15.

Command for testing:
ptp4l -P -4 -H -i eth0 -l 6 -m -q -p /dev/ptp0 -f ptp.cfg
where ptp.cfg:

[global]
tx_timestamp_timeout     20

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c