[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200918105753.3473725-1-olteanv@gmail.com>
Date: Fri, 18 Sep 2020 13:57:42 +0300
From: Vladimir Oltean <olteanv@...il.com>
To: davem@...emloft.net, netdev@...r.kernel.org
Cc: yangbo.lu@....com, xiaoliang.yang_1@....com,
UNGLinuxDriver@...rochip.com, claudiu.manoil@....com,
alexandre.belloni@...tlin.com, andrew@...n.ch,
vivien.didelot@...il.com, f.fainelli@...il.com, kuba@...nel.org
Subject: [PATCH net-next 00/11] Felix DSA driver cleanup: build Seville separately
From: Vladimir Oltean <vladimir.oltean@....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
Powered by blists - more mailing lists