]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw: enable HWTSTAMP_FILTER_PTP_V1_L4_EVENT filter
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 8 Jun 2017 18:51:31 +0000 (13:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jun 2017 02:10:13 +0000 (22:10 -0400)
commitc01649aa7fe495a9d4d30777de803490ab951aca
treebc4607416cec6cb1e21ea01ed4df6b48198f316c
parentbd529da94bb2638e6c3fd87997988ef271265e8d
net: ethernet: ti: cpsw: enable HWTSTAMP_FILTER_PTP_V1_L4_EVENT filter

CPSW driver supports PTP v1 messages, but for unknown reasons this filter
is not advertised. As result,
./tools/testing/selftests/networking/timestamping/timestamping utility
can't be used for testing of CPSW RX timestamping with option
SOF_TIMESTAMPING_RX_HARDWARE, because it uses
HWTSTAMP_FILTER_PTP_V1_L4_SYNC filter.

Hence, fix it by advertising HWTSTAMP_FILTER_PTP_V1_L4_XXX filters
in CPSW driver.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c