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)
commite9523a5a32a1ce3acfe875cddd8ac8ad8a9ed270
treebc4607416cec6cb1e21ea01ed4df6b48198f316c
parent9fd7aca2c604fd19c0822d9b1520fb8ec16a81fb
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