]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: ocelot: add hardware timestamping support for Felix
authorYangbo Lu <yangbo.lu@nxp.com>
Wed, 20 Nov 2019 08:23:18 +0000 (16:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 22:39:02 +0000 (14:39 -0800)
commit3ba2de9fece1f79509a7658357f0ce83b2fea5d2
tree067419f4e20b69564b1ad6241da392a77793742f
parent8936969026738be1c95c13b5fedf605d2f96dfe6
net: dsa: ocelot: add hardware timestamping support for Felix

This patch is to reuse ocelot functions as possible to enable PTP
clock and to support hardware timestamping on Felix.
On TX path, timestamping works on packet which requires timestamp.
The injection header will be configured accordingly, and skb clone
requires timestamp will be added into a list. The TX timestamp
is final handled in threaded interrupt handler when PTP timestamp
FIFO is ready.
On RX path, timestamping is always working. The RX timestamp could
be got from extraction header.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
net/dsa/tag_ocelot.c