public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/4] Validate OF nodes for DSA shared ports
@ 2022-07-29 13:21 Vladimir Oltean
  2022-07-29 13:21 ` [PATCH v2 net-next 1/4] of: base: export of_device_compatible_match() for use in modules Vladimir Oltean
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Vladimir Oltean @ 2022-07-29 13:21 UTC (permalink / raw)
  To: netdev
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Andrew Lunn, Vivien Didelot, Florian Fainelli, Oleksij Rempel,
	Christian Marangi, John Crispin, Kurt Kanzenbach, Mans Rullgard,
	Arun Ramadoss, Woojung Huh, UNGLinuxDriver, Claudiu Manoil,
	Alexandre Belloni, George McCollister, DENG Qingfang, Sean Wang,
	Landen Chao, Matthias Brugger, Hauke Mehrtens,
	Martin Blumenstingl, Aleksander Jan Bajkowski, Alvin Šipraga,
	Luiz Angelo Daros de Luca, Linus Walleij, Pawel Dembicki,
	Clément Léger, Geert Uytterhoeven, Russell King,
	Marek Behún, Marcin Wojtas, Rob Herring, Frank Rowand

This is the first set of measures taken so that more drivers can be
transitioned towards phylink on shared (CPU and DSA) ports some time in
the future. It consists of:

- introducing warnings for drivers that currently skip phylink due to
  incomplete DT descriptions.
- introducing warning for drivers that currently skip phylink due to
  using platform data (search for struct dsa_chip_data).
- closing the possibility for new(ish) drivers to skip phylink, by
  validating their DT descriptions.
- making the code paths used by shared ports more evident.
- preparing the code paths used by shared ports for further work to fake
  a link description where that is possible.

More details in patch 4/4. Patches 2 and 3 are DSA cleanups, and patch 1
is a dependency for patch 4.

v1 at
https://patchwork.kernel.org/project/netdevbpf/patch/20220723164635.1621911-1-vladimir.oltean@nxp.com/

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Frank Rowand <frowand.list@gmail.com>

Vladimir Oltean (4):
  of: base: export of_device_compatible_match() for use in modules
  net: dsa: avoid dsa_port_link_{,un}register_of() calls with platform
    data
  net: dsa: rename dsa_port_link_{,un}register_of
  net: dsa: validate that DT nodes of shared ports have the properties
    they need

 drivers/of/base.c  |   1 +
 net/dsa/dsa2.c     |  36 ++++++---
 net/dsa/dsa_priv.h |   4 +-
 net/dsa/port.c     | 193 +++++++++++++++++++++++++++++++++++++++++----
 4 files changed, 207 insertions(+), 27 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-08-01 14:26 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-29 13:21 [PATCH v2 net-next 0/4] Validate OF nodes for DSA shared ports Vladimir Oltean
2022-07-29 13:21 ` [PATCH v2 net-next 1/4] of: base: export of_device_compatible_match() for use in modules Vladimir Oltean
2022-07-29 13:21 ` [PATCH v2 net-next 2/4] net: dsa: avoid dsa_port_link_{,un}register_of() calls with platform data Vladimir Oltean
2022-07-29 13:21 ` [PATCH v2 net-next 3/4] net: dsa: rename dsa_port_link_{,un}register_of Vladimir Oltean
2022-07-29 13:21 ` [PATCH v2 net-next 4/4] net: dsa: validate that DT nodes of shared ports have the properties they need Vladimir Oltean
2022-07-29 16:22   ` Rob Herring
2022-07-29 17:01     ` Vladimir Oltean
2022-07-29 18:39       ` Rob Herring
2022-07-30 16:23         ` Vladimir Oltean
2022-08-01 14:02           ` Rob Herring
2022-08-01 14:11             ` Vladimir Oltean
2022-08-01 14:26               ` Rob Herring
2022-07-29 17:57   ` Marcin Wojtas
2022-07-29 18:34     ` Vladimir Oltean
2022-07-29 20:36       ` Marcin Wojtas
2022-07-29 21:17         ` Andrew Lunn
2022-07-29 21:24           ` Florian Fainelli
2022-07-29 21:33             ` Marcin Wojtas
2022-07-29 21:44               ` Florian Fainelli
2022-07-30  0:49               ` Vladimir Oltean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox