From: Vladimir Oltean <vladimir.olt...@nxp.com> When introducing the Seville switch support to the Felix driver, some technical debt was created. Since both VSC9959 and VSC9953 are embedded switches (one on an arm64 SoC and the other on a powerpc SoC), there is no use case for having the code for both be present in the same module.
This was necessary at the time due to the common SERDES PCS code that they were using, but that has been since refactored into drivers/net/pcs/pcs-lynx.c. This makes the Seville driver stop uselessly depending upon PCI and FSL_ENETC_MDIO, which were only dependencies of Felix in fact. Some whitespace/tab conversions are also present in this series as part of the cleanup process. Vladimir Oltean (11): net: dsa: felix: use ocelot_field_{read,write} helpers consistently net: dsa: seville: don't write to MEM_ENA twice net: dsa: seville: first enable memories, then initialize them net: dsa: ocelot: document why reset procedure is different for felix/seville net: dsa: seville: remove unused defines for the mdio controller net: dsa: seville: reindent defines for MDIO controller net: dsa: felix: replace tabs with spaces net: dsa: seville: duplicate vsc9959_mdio_bus_free net: mscc: ocelot: make ocelot_init_timestamp take a const struct ptp_clock_info net: dsa: felix: move the PTP clock structure to felix_vsc9959.c net: dsa: seville: build as separate module drivers/net/dsa/ocelot/Kconfig | 22 +++++---- drivers/net/dsa/ocelot/Makefile | 6 ++- drivers/net/dsa/ocelot/felix.c | 47 +------------------ drivers/net/dsa/ocelot/felix.h | 7 +-- drivers/net/dsa/ocelot/felix_vsc9959.c | 57 +++++++++++++++++------- drivers/net/dsa/ocelot/seville_vsc9953.c | 55 ++++++++++++++--------- drivers/net/ethernet/mscc/ocelot_ptp.c | 3 +- include/soc/mscc/ocelot_ptp.h | 3 +- 8 files changed, 102 insertions(+), 98 deletions(-) -- 2.25.1