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