With the low Ethernet connection speed cpdma notification about packet processing can be received before CPTS TX timestamp event, which is set when packet actually left CPSW while cpdma notification is sent when packet pushed in CPSW fifo. As result, when connection is slow and CPU is fast enough TX timestamping is not working properly. Issue was discovered using timestamping tool on am57x boards with Ethernet link speed forced to 100M and on am335x-evm with Ethernet link speed forced to 10M. This series fixes it by introducing TX SKB queue to store PTP SKBs for which Ethernet Transmit Event hasn't been received yet and then re-check this queue with new Ethernet Transmit Events by scheduling CPTS overflow work more often until TX SKB queue is not empty. The internal CPTS workqueues are also converted to use kthread_worker. Grygorii Strashko (2): net: ethernet: ti: cpts: convert to use kthread_worker net: ethernet: ti: cpts: fix tx timestamping timeout drivers/net/ethernet/ti/cpts.c | 112 +++++++++++++++++++++++++++++++++++++---- drivers/net/ethernet/ti/cpts.h | 5 +- 2 files changed, 106 insertions(+), 11 deletions(-) -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html