net: dsa: enable and disable all ports
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 1 replyIn review
- v16 patches 12 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | net: dsa: use a single switch statement for port setupnet/ | +39 | 0 replies | |
| 2/6 | net: dsa: do not enable or disable non user portsdrivers/ drivers/ drivers/ +4 more | +39 | 0 replies | |
| 3/6 | net: dsa: enable and disable all portsnet/ | +11 | 0 replies | |
| 4/6 | net: dsa: mv88e6xxx: do not change STP state on port disablingdrivers/ | +0 | 0 replies | |
| 5/6 | net: dsa: mv88e6xxx: enable SERDES after setupdrivers/ | +4 | 0 replies | |
| 6/6 | net: dsa: mv88e6xxx: wrap SERDES IRQ in power functiondrivers/ | +19 | 0 replies |
Reviews trailers per patch
2 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Florian Fainelli | Andrew Lunn |
|---|---|---|
| 1/6 | ||
| 2/6 | ||
| 3/6 | R-b | |
| 4/6 | R-b | |
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v2 0/6] net: dsa: enable and disable all ports
The DSA stack currently calls the .port_enable and .port_disable switch callbacks for slave ports only. However, it is useful to call them for all port types. For example this allows some drivers to delay the optimization of power consumption after the switch is setup. This can also help reducing the setup code of drivers a bit.
The first DSA core patches enable and disable all ports of a switch, regardless their type. The last mv88e6xxx patches remove redundant code from the driver setup and the said callbacks, now that they handle SERDES power for all ports.
Changes in v2: do not guard .port_disable for broadcom switches.
Vivien Didelot (6):
net: dsa: use a single switch statement for port setup
net: dsa: do not enable or disable non user ports
net: dsa: enable and disable all ports
net: dsa: mv88e6xxx: do not change STP state on port disabling
net: dsa: mv88e6xxx: enable SERDES after setup
net: dsa: mv88e6xxx: wrap SERDES IRQ in power function
drivers/net/dsa/b53/b53_common.c | 7 +- drivers/net/dsa/bcm_sf2.c | 3 + drivers/net/dsa/lan9303-core.c | 6 ++ drivers/net/dsa/lantiq_gswip.c | 6 ++ drivers/net/dsa/microchip/ksz_common.c | 6 ++ drivers/net/dsa/mt7530.c | 6 ++ drivers/net/dsa/mv88e6xxx/chip.c | 64 ++++++----------- net/dsa/dsa2.c | 98 +++++++++++++------------- 8 files changed, 106 insertions(+), 90 deletions(-)
Signature · 1 line
2.22.0