[PATCH RFC 0/6] Modify KSZ9477 DSA driver in preparation to add other KSZ switch drivers.

From: Tristram.Ha
Date: Thu Sep 07 2017 - 17:09:43 EST


From: Tristram Ha <Tristram.Ha@xxxxxxxxxxxxx>

This series of patches is to modify the original KSZ9477 DSA driver so that other KSZ switch drivers can be added and use the common code.

This patch set is against net-next.

drivers/net/dsa/microchip/Makefile | 2 +-
drivers/net/dsa/microchip/ksz9477.c | 1317 ++++++++++++++++++++++++++++++++
drivers/net/dsa/microchip/ksz_common.c | 1156 +---------------------------
drivers/net/dsa/microchip/ksz_priv.h | 105 ++-
drivers/net/dsa/microchip/ksz_spi.c | 13 +-
net/dsa/tag_ksz.c | 40 +-
6 files changed, 1458 insertions(+), 1175 deletions(-) create mode 100644 drivers/net/dsa/microchip/ksz9477.c