net: dsa: microchip: common spi probe for the ksz series switches - part 2
Status from this message: This series was applied to netdev/net-next.git (master)
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 All 13 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | net: dsa: microchip: rename shutdown to reset in ksz_dev_opsdrivers/ drivers/ drivers/ +2 more | +9 | 0 replies | Applied |
| 2/13 | net: dsa: microchip: add config_cpu_port to struct ksz_dev_opsdrivers/ drivers/ drivers/ | +5 | 0 replies | Applied |
| 3/13 | net: dsa: microchip: add the enable_stp_addr pointer in ksz_dev_opsdrivers/ drivers/ drivers/ | +52 | 0 replies | Applied |
| 4/13 | net: dsa: microchip: move setup function to ksz_commondrivers/ drivers/ drivers/ +1 more | +41 | 0 replies | Applied |
| 5/13 | net: dsa: microchip: move broadcast rate limit to ksz_setupdrivers/ drivers/ drivers/ +3 more | +30 | 0 replies | Applied |
| 6/13 | net: dsa: microchip: move multicast enable to ksz_setupdrivers/ drivers/ drivers/ +3 more | +19 | 0 replies | Applied |
| 7/13 | net: dsa: microchip: move start of switch to ksz_setupdrivers/ drivers/ drivers/ +2 more | +20 | 0 replies | Applied |
| 8/13 | net: dsa: microchip: common dsa_switch_ops for ksz switchesdrivers/ drivers/ drivers/ +1 more | +89 | 0 replies | Applied |
| 9/13 | net: dsa: microchip: ksz9477: separate phylink mode from switch registerdrivers/ drivers/ | +7 | 0 replies | Applied |
| 10/13 | net: dsa: microchip: common menuconfig for ksz series switchdrivers/ drivers/ drivers/ | +13 | 0 replies | Applied |
| 11/13 | net: dsa: microchip: move ksz_dev_ops to ksz_common.cdrivers/ drivers/ drivers/ +3 more | +271 | 0 replies | Applied |
| 12/13 | net: dsa: microchip: remove the ksz8/ksz9477_switch_registerdrivers/ drivers/ drivers/ +4 more | +4 | 0 replies | Applied |
| 13/13 | net: dsa: microchip: common ksz_spi_probe for ksz switchesdrivers/ drivers/ drivers/ +1 more | +69 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Patch net-next 00/13] net: dsa: microchip: common spi probe for the ksz series switches - part 2
This patch series aims to refactor the ksz_switch_register routine to have the common flow for the ksz series switch. And this is the follow up patch series.
First, it tries moves the common implementation in the setup from individual files to ksz_setup. Then implements the common dsa_switch_ops structure instead of independent registration. And then moves the ksz_dev_ops to ksz_common.c, it allows the dynamic detection of which ksz_dev_ops to be used based on the switch detection function.
Finally, the patch updates the ksz_spi probe function to be same for all the ksz_switches.
Arun Ramadoss (13):
net: dsa: microchip: rename shutdown to reset in ksz_dev_ops
net: dsa: microchip: add config_cpu_port to struct ksz_dev_ops
net: dsa: microchip: add the enable_stp_addr pointer in ksz_dev_ops
net: dsa: microchip: move setup function to ksz_common
net: dsa: microchip: move broadcast rate limit to ksz_setup
net: dsa: microchip: move multicast enable to ksz_setup
net: dsa: microchip: move start of switch to ksz_setup
net: dsa: microchip: common dsa_switch_ops for ksz switches
net: dsa: microchip: ksz9477: separate phylink mode from switch
register
net: dsa: microchip: common menuconfig for ksz series switch
net: dsa: microchip: move ksz_dev_ops to ksz_common.c
net: dsa: microchip: remove the ksz8/ksz9477_switch_register
net: dsa: microchip: common ksz_spi_probe for ksz switches
drivers/net/dsa/microchip/Kconfig | 42 +--
drivers/net/dsa/microchip/Makefile | 10 +-
drivers/net/dsa/microchip/ksz8.h | 48 +++
drivers/net/dsa/microchip/ksz8795.c | 195 +++--------
drivers/net/dsa/microchip/ksz8795_reg.h | 12 -
drivers/net/dsa/microchip/ksz8863_smi.c | 2 +-
drivers/net/dsa/microchip/ksz9477.c | 244 +++++--------
drivers/net/dsa/microchip/ksz9477.h | 60 ++++
drivers/net/dsa/microchip/ksz9477_i2c.c | 6 +-
drivers/net/dsa/microchip/ksz9477_reg.h | 12 -
drivers/net/dsa/microchip/ksz9477_spi.c | 150 --------
drivers/net/dsa/microchip/ksz_common.c | 326 +++++++++++++-----
drivers/net/dsa/microchip/ksz_common.h | 82 ++---
.../microchip/{ksz8795_spi.c => ksz_spi.c} | 89 +++--
14 files changed, 598 insertions(+), 680 deletions(-)
create mode 100644 drivers/net/dsa/microchip/ksz9477.h
delete mode 100644 drivers/net/dsa/microchip/ksz9477_spi.c
rename drivers/net/dsa/microchip/{ksz8795_spi.c => ksz_spi.c} (60%)base-commit: 8720bd951b8e8515ffd995c7631790fdabaa9265
Signature · 1 line
2.36.1