Support PTP clock and hardware timestamping for DSA Felix driver
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: mscc: ocelot: export ocelot_hwstamp_get/set functionsdrivers/ include/ | +6 | 2 replies | |
| 2/5 | net: mscc: ocelot: convert to use ocelot_get_txtstamp()drivers/ drivers/ drivers/ +1 more | +69 | 2 replies | |
| 3/5 | net: mscc: ocelot: convert to use ocelot_port_add_txtstamp_skb()drivers/ include/ | +29 | 2 replies | |
| 4/5 | net: dsa: ocelot: define PTP registers for felix_vsc9959drivers/ | +16 | 3 replies | |
| 5/5 | net: dsa: ocelot: add hardware timestamping support for Felixdrivers/ net/ | +102 | 2 replies |
Reviews trailers per patch
4 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Andrew Lunn | Florian Fainelli |
|---|---|---|
| 1/5 | R-b | R-b |
| 2/5 | R-b | R-b |
| 3/5 | R-b | R-b |
| 4/5 | R-b | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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