net: dsa: microchip: refactor the ksz switch init function
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
Changes in v1 from the cover letter
- Added the macros for the chip id
- Updated the ksz8863_smi of_device_id data
- Moved the patch 4 port allocation after the patch on mib_names to ksz_common
Patches in v1 All 9 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | net: dsa: microchip: ksz8795: update the port_cnt value in ksz_chip_datadrivers/ | +3 | 0 replies | Applied |
| 2/9 | net: dsa: microchip: move ksz_chip_data to ksz_commondrivers/ drivers/ drivers/ +1 more | +259 | 0 replies | Applied |
| 3/9 | net: dsa: microchip: perform the compatibility check for dev probeddrivers/ drivers/ drivers/ +3 more | +109 | 1 reply | Applied |
| 4/9 | net: dsa: microchip: move struct mib_names to ksz_chip_datadrivers/ drivers/ drivers/ +1 more | +149 | 1 reply | Applied |
| 5/9 | net: dsa: microchip: move port memory allocation to ksz_commondrivers/ drivers/ drivers/ | +21 | 1 reply | Applied |
| 6/9 | net: dsa: microchip: move get_strings to ksz_commondrivers/ drivers/ drivers/ +1 more | +20 | 0 replies | Applied |
| 7/9 | net: dsa: move mib->cnt_ptr reset code to ksz_common.cdrivers/ drivers/ drivers/ | +7 | 0 replies | Applied |
| 8/9 | net: dsa: microchip: add the phylink get_capsdrivers/ drivers/ drivers/ +1 more | +117 | 0 replies | Applied |
| 9/9 | net: dsa: microchip: remove unused members in ksz_devicedrivers/ drivers/ | +1 | 0 replies | Applied |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Florian Fainelli | Vladimir Oltean |
|---|---|---|
| 1/9 | R-b | R-b |
| 2/9 | R-b | R-b |
| 3/9 | R-b | |
| 4/9 | R-b | |
| 5/9 | R-b | |
| 6/9 | R-b | R-b |
| 7/9 | R-b | R-b |
| 8/9 | R-b | R-b |
| 9/9 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Patch net-next 0/9] net: dsa: microchip: refactor the ksz switch init function
During the ksz_switch_register function, it calls the individual switches init functions (ksz8795.c and ksz9477.c). Both these functions have few things in common like, copying the chip specific data to struct ksz_dev, allocating ksz_port memory and mib_names memory & cnt. And to add the new LAN937x series switch, these allocations has to be replicated.
Based on the review feedback of LAN937x part support patch, refactored the switch init function to move allocations to switch register.
Changes in Patch v1
- Added the macros for the chip id
- Updated the ksz8863_smi of_device_id data
- Moved the patch 4 port allocation after the patch on mib_names to ksz_common
Changes in RFC v2
- Fixed the compilation issue
Arun Ramadoss (8):
net: dsa: microchip: ksz8795: update the port_cnt value in
ksz_chip_data
net: dsa: microchip: move ksz_chip_data to ksz_common
net: dsa: microchip: perform the compatibility check for dev probed
net: dsa: microchip: move struct mib_names to ksz_chip_data
net: dsa: microchip: move port memory allocation to ksz_common
net: dsa: microchip: move get_strings to ksz_common
net: dsa: microchip: add the phylink get_caps
net: dsa: microchip: remove unused members in ksz_device
Prasanna Vengateshan (1):
net: dsa: move mib->cnt_ptr reset code to ksz_common.c
drivers/net/dsa/microchip/ksz8795.c | 252 +----------- drivers/net/dsa/microchip/ksz8795_spi.c | 35 +- drivers/net/dsa/microchip/ksz8863_smi.c | 10 +- drivers/net/dsa/microchip/ksz9477.c | 200 ++-------- drivers/net/dsa/microchip/ksz9477_i2c.c | 30 +- drivers/net/dsa/microchip/ksz9477_spi.c | 30 +- drivers/net/dsa/microchip/ksz_common.c | 485 +++++++++++++++++++++++- drivers/net/dsa/microchip/ksz_common.h | 79 +++- 8 files changed, 664 insertions(+), 457 deletions(-)
base-commit: 6251264fedde83ade6f0f1f7049037469dd4de0b
Signature · 1 line
2.33.0