Skip to content

Support PTP clock and hardware timestamping for DSA Felix driver

Yangbo Lu netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: mscc: ocelot: export ocelot_hwstamp_get/set functionsdrivers/net/ethernet/mscc/ocelot.c include/soc/mscc/ocelot.h+6 -42 replies
2/5net: mscc: ocelot: convert to use ocelot_get_txtstamp()drivers/net/ethernet/mscc/ocelot.c drivers/net/ethernet/mscc/ocelot.h drivers/net/ethernet/mscc/ocelot_board.c +1 more+69 -612 replies
3/5net: mscc: ocelot: convert to use ocelot_port_add_txtstamp_skb()drivers/net/ethernet/mscc/ocelot.c include/soc/mscc/ocelot.h+29 -162 replies
4/5net: dsa: ocelot: define PTP registers for felix_vsc9959drivers/net/dsa/ocelot/felix_vsc9959.c+16 -03 replies
5/5net: dsa: ocelot: add hardware timestamping support for Felixdrivers/net/dsa/ocelot/felix.c net/dsa/tag_ocelot.c+102 -12 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchAndrew LunnFlorian Fainelli
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Support PTP clock and hardware timestamping for DSA Felix driver

This patch-set is to support PTP clock and hardware timestamping for DSA Felix driver. Some functions in ocelot.c/ocelot_board.c driver were reworked/exported, so that DSA Felix driver was able to reuse them as much as possible.

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.

Yangbo Lu (5):
net: mscc: ocelot: export ocelot_hwstamp_get/set functions
net: mscc: ocelot: convert to use ocelot_get_txtstamp()
net: mscc: ocelot: convert to use ocelot_port_add_txtstamp_skb()
net: dsa: ocelot: define PTP registers for felix_vsc9959
net: dsa: ocelot: add hardware timestamping support for Felix

 drivers/net/dsa/ocelot/felix.c           |  89 ++++++++++++++++++++++++
 drivers/net/dsa/ocelot/felix_vsc9959.c   |  16 +++++
 drivers/net/ethernet/mscc/ocelot.c       | 113 +++++++++++++++++++++++++------
 drivers/net/ethernet/mscc/ocelot.h       |   6 --
 drivers/net/ethernet/mscc/ocelot_board.c |  53 +--------------
 include/soc/mscc/ocelot.h                |  13 +++-
 net/dsa/tag_ocelot.c                     |  14 +++-
 7 files changed, 222 insertions(+), 82 deletions(-)
Signature · 1 line
2.7.4