net: dsa: vsc73xx: Split vsc73xx driver
authorPawel Dembicki <paweldembicki@gmail.com>
Thu, 4 Jul 2019 22:29:05 +0000 (00:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jul 2019 21:16:32 +0000 (14:16 -0700)
commit95711cd5f0b4b0394f2e0c30fdd99b853317ed49
tree65050561813d6b554f3bdeb2e2c4d58ffcda3eb3
parent86116f4d649bec311bbf3ee50a1eb582e3fcfd9c
net: dsa: vsc73xx: Split vsc73xx driver

This driver (currently) only takes control of the switch chip over
SPI and configures it to route packages around when connected to a
CPU port. But Vitesse chip support also parallel interface.

This patch split driver into two parts: core and spi. It is required
for add support to another managing interface.

Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/Kconfig
drivers/net/dsa/Makefile
drivers/net/dsa/vitesse-vsc73xx-core.c [new file with mode: 0644]
drivers/net/dsa/vitesse-vsc73xx-spi.c [new file with mode: 0644]
drivers/net/dsa/vitesse-vsc73xx.c [deleted file]
drivers/net/dsa/vitesse-vsc73xx.h [new file with mode: 0644]