netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/6] net: dsa: enable and disable all ports
@ 2019-08-19 20:00 Vivien Didelot
  2019-08-19 20:00 ` [PATCH net-next v2 1/6] net: dsa: use a single switch statement for port setup Vivien Didelot
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Vivien Didelot @ 2019-08-19 20:00 UTC (permalink / raw)
  To: netdev; +Cc: marek.behun, davem, f.fainelli, andrew, Vivien Didelot

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(-)

-- 
2.22.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-08-20 19:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-19 20:00 [PATCH net-next v2 0/6] net: dsa: enable and disable all ports Vivien Didelot
2019-08-19 20:00 ` [PATCH net-next v2 1/6] net: dsa: use a single switch statement for port setup Vivien Didelot
2019-08-19 20:00 ` [PATCH net-next v2 2/6] net: dsa: do not enable or disable non user ports Vivien Didelot
2019-08-19 20:00 ` [PATCH net-next v2 3/6] net: dsa: enable and disable all ports Vivien Didelot
2019-08-19 20:00 ` [PATCH net-next v2 4/6] net: dsa: mv88e6xxx: do not change STP state on port disabling Vivien Didelot
2019-08-19 20:00 ` [PATCH net-next v2 5/6] net: dsa: mv88e6xxx: enable SERDES after setup Vivien Didelot
2019-08-19 20:00 ` [PATCH net-next v2 6/6] net: dsa: mv88e6xxx: wrap SERDES IRQ in power function Vivien Didelot
2019-08-20 19:34 ` [PATCH net-next v2 0/6] net: dsa: enable and disable all ports David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).