Skip to content

PTP driver refactoring for SJA1105 DSA

Vladimir Oltean netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4net: dsa: sja1105: Get rid of global declaration of struct ptp_clock_infodrivers/net/dsa/sja1105/sja1105_ptp.c+14 -150 replies
2/4net: dsa: sja1105: Make all public PTP functions take dsa_switch as argumentdrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_main.c drivers/net/dsa/sja1105/sja1105_ptp.c +2 more+37 -360 replies
3/4net: dsa: sja1105: Move PTP data to its own private structuredrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_main.c drivers/net/dsa/sja1105/sja1105_ptp.c +1 more+335 -2960 replies
4/4net: dsa: sja1105: Change the PTP command access patterndrivers/net/dsa/sja1105/sja1105.h drivers/net/dsa/sja1105/sja1105_ptp.c drivers/net/dsa/sja1105/sja1105_ptp.h+18 -120 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard Cochran
SeriesA-b
1/4
2/4
3/4
4/4

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 net-next 0/4] PTP driver refactoring for SJA1105 DSA

This series creates a better separation between the driver core and the PTP portion. Therefore, users who are not interested in PTP can get a simpler and smaller driver by compiling it out.

This is in preparation for further patches: SPI transfer timestamping, synchronizing the hardware clock (as opposed to keeping it free-running), PPS input/output, etc.

Vladimir Oltean (4):
net: dsa: sja1105: Get rid of global declaration of struct
ptp_clock_info
net: dsa: sja1105: Make all public PTP functions take dsa_switch as
argument
net: dsa: sja1105: Move PTP data to its own private structure
net: dsa: sja1105: Change the PTP command access pattern

 drivers/net/dsa/sja1105/sja1105.h      |  16 +-
 drivers/net/dsa/sja1105/sja1105_main.c | 234 +--------------
 drivers/net/dsa/sja1105/sja1105_ptp.c  | 391 ++++++++++++++++++++-----
 drivers/net/dsa/sja1105/sja1105_ptp.h  |  84 ++++--
 drivers/net/dsa/sja1105/sja1105_spi.c  |   2 +-
 5 files changed, 386 insertions(+), 341 deletions(-)
Signature · 1 line
2.17.1