netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] Support PTP clock and hardware timestamping for DSA Felix driver
@ 2019-11-20  8:23 Yangbo Lu
  2019-11-20  8:23 ` [PATCH 1/5] net: mscc: ocelot: export ocelot_hwstamp_get/set functions Yangbo Lu
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Yangbo Lu @ 2019-11-20  8:23 UTC (permalink / raw)
  To: netdev, Alexandre Belloni, Microchip Linux Driver Support,
	David S . Miller, Vladimir Oltean, Claudiu Manoil, Vivien Didelot,
	Florian Fainelli, Richard Cochran
  Cc: Yangbo Lu

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(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-11-21 22:39 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-20  8:23 [PATCH 0/5] Support PTP clock and hardware timestamping for DSA Felix driver Yangbo Lu
2019-11-20  8:23 ` [PATCH 1/5] net: mscc: ocelot: export ocelot_hwstamp_get/set functions Yangbo Lu
2019-11-21  2:40   ` Andrew Lunn
2019-11-21  4:03   ` Florian Fainelli
2019-11-20  8:23 ` [PATCH 2/5] net: mscc: ocelot: convert to use ocelot_get_txtstamp() Yangbo Lu
2019-11-21  2:41   ` Andrew Lunn
2019-11-21  4:04   ` Florian Fainelli
2019-11-20  8:23 ` [PATCH 3/5] net: mscc: ocelot: convert to use ocelot_port_add_txtstamp_skb() Yangbo Lu
2019-11-21  2:43   ` Andrew Lunn
2019-11-21  4:04   ` Florian Fainelli
2019-11-20  8:23 ` [PATCH 4/5] net: dsa: ocelot: define PTP registers for felix_vsc9959 Yangbo Lu
2019-11-21  2:49   ` Andrew Lunn
2019-11-21  3:20     ` Y.b. Lu
2019-11-21  4:04   ` Florian Fainelli
2019-11-20  8:23 ` [PATCH 5/5] net: dsa: ocelot: add hardware timestamping support for Felix Yangbo Lu
2019-11-21  2:56   ` Andrew Lunn
2019-11-21  3:29     ` Y.b. Lu
2019-11-21 22:39 ` [PATCH 0/5] Support PTP clock and hardware timestamping for DSA Felix driver David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).