linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* DSA: request for your help with your DSA driver
@ 2022-07-05 12:22 Marek Behún
  2022-07-05 13:32 ` Linus Walleij
  2022-07-05 13:45 ` Alvin Šipraga
  0 siblings, 2 replies; 5+ messages in thread
From: Marek Behún @ 2022-07-05 12:22 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Alexandre Belloni, Alvin __ipraga,
	Claudiu Manoil, David S. Miller, DENG Qingfang, Eric Dumazet,
	Florian Fainelli, George McCollister, Hauke Mehrtens,
	Jakub Kicinski, Kurt Kanzenbach, Landen Chao, Linus Walleij,
	linux-arm-kernel, linux-mediatek, Matthias Brugger, Paolo Abeni,
	Sean Wang, UNGLinuxDriver, Vivien Didelot, Vladimir Oltean,
	Woojung Huh
  Cc: Russell King (Oracle)

Hello guys,

this is a request for help/comments on the DSA drivers you have been
working on in Linux.

I am writing this e-mail because people don't seem to be responding to
RFC patches.

Basically Russell and I are trying to do some development on phylink +
DSA to move it forward, without breaking existing drivers:

- we want to make it so that phylink is always used for CPU and DSA
  ports (needed for conversion to phylink_pcs)

- to do that, phylink needs to know the interface type to which the
  port will be configure

- many drivers don't report that information now:
  - some use port's phy-mode property from device-tree
  - some leave it at default (HW initialized)
  - some choose the mode according to some information the driver
    computes
  - some try to find a mode that gives the maximum possible speed
    (mv88e6xxx, for example)

  for example take a look at mt7530 driver
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/net/dsa/mt7530.c?h=v5.19-rc5
    lines 2213-2250
       function mt7530_setup()
          reads phy-mode from device-tree if port 5 has a node,
          otherwise tries to determine the mode from gmac node
    line 2847
       function mt7531_cpu_port_config()
          decides PHY mode according to some prior settings

Russell wrote a RFC series
  https://lore.kernel.org/netdev/YsQIjC7UpcGWJovx@shell.armlinux.org.uk/T/
in which
- mv88e6xxx is patched to report the max speed mode to phylink
- for other drivers, if no default interface is reported, an interface
  will be inferred from the reported mac capabilities, such that it
  gives maximum possible speed

It is very probable that this will break your drivers, and so I ask you
to look at the RFC series, maybe test it, and give your comments or
additional patches that make it work.

Thank you.

Marek

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-07-05 14:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05 12:22 DSA: request for your help with your DSA driver Marek Behún
2022-07-05 13:32 ` Linus Walleij
2022-07-05 14:48   ` Russell King (Oracle)
2022-07-05 13:45 ` Alvin Šipraga
2022-07-05 14:11   ` Russell King (Oracle)

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