netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] Convert Ocelot and Felix switches to PHYLINK
@ 2019-11-18 18:10 Vladimir Oltean
  2019-11-18 18:10 ` [PATCH net-next 1/2] net: mscc: ocelot: treat SPEED_UNKNOWN as SPEED_10 Vladimir Oltean
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Vladimir Oltean @ 2019-11-18 18:10 UTC (permalink / raw)
  To: davem, linux, alexandre.belloni
  Cc: andrew, f.fainelli, vivien.didelot, joergen.andreasen,
	allan.nielsen, horatiu.vultur, claudiu.manoil,
	alexandru.marginean, xiaoliang.yang_1, yangbo.lu, netdev,
	Vladimir Oltean

This series is needed on NXP LS1028A to support the CPU port which runs
at 2500Mbps fixed-link, a setting which PHYLIB can't hold in its swphy
design.

In DSA, PHYLINK comes "for free". I added the PHYLINK ops to the Ocelot
driver, integrated them to the VSC7514 ocelot_board module, then tested
them via the Felix front-end. The VSC7514 integration is only
compile-tested.

Vladimir Oltean (2):
  net: mscc: ocelot: treat SPEED_UNKNOWN as SPEED_10
  net: mscc: ocelot: convert to PHYLINK

 drivers/net/dsa/ocelot/felix.c           |  65 +++++++---
 drivers/net/ethernet/mscc/Kconfig        |   2 +-
 drivers/net/ethernet/mscc/ocelot.c       | 153 ++++++++++++-----------
 drivers/net/ethernet/mscc/ocelot.h       |  13 +-
 drivers/net/ethernet/mscc/ocelot_board.c | 151 +++++++++++++++++++---
 include/soc/mscc/ocelot.h                |  21 +++-
 6 files changed, 285 insertions(+), 120 deletions(-)

-- 

Horatiu, I am sorry for abusing your goodwill. Could you please test
this series and confirm it causes no regression on VSC7514?

2.17.1


^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH net-next 0/2] Convert ocelot to phylink
@ 2021-08-15  0:56 Vladimir Oltean
  2021-08-15  0:56 ` [PATCH net-next 2/2] net: mscc: ocelot: convert " Vladimir Oltean
  0 siblings, 1 reply; 19+ messages in thread
From: Vladimir Oltean @ 2021-08-15  0:56 UTC (permalink / raw)
  To: netdev, Jakub Kicinski, David S. Miller
  Cc: Russell King, Alexandre Belloni, Horatiu Vultur, Colin Foster,
	Florian Fainelli, Andrew Lunn, Vivien Didelot, Claudiu Manoil,
	UNGLinuxDriver

The ocelot switchdev and felix dsa drivers are interesting because they
target the same class of hardware switches but used in different modes.

Colin has an interesting use case where he wants to use a hardware
switch supported by the ocelot switchdev driver with the felix dsa
driver.

So far, the existing hardware revisions were similar between the ocelot
and felix drivers, but not completely identical. With identical hardware,
it is absurd that the felix driver uses phylink while the ocelot driver
uses phylib - this should not be one of the differences between the
switchdev and dsa driver, and we could eliminate it.

Colin will need the common phylink support in ocelot and felix when
adding a phylink_pcs driver for the PCS1G block inside VSC7514, which
will make the felix driver work with either the NXP or the Microchip PCS.

As usual, Alex, Horatiu, sorry for bugging you, but it would be
appreciated if you could give this a quick run on actual VSC7514
hardware (which I don't have) to make sure I'm not introducing any
breakage.

Vladimir Oltean (2):
  net: dsa: felix: stop calling ocelot_port_{enable,disable}
  net: mscc: ocelot: convert to phylink

 drivers/net/dsa/ocelot/felix.c             | 109 +--------
 drivers/net/dsa/ocelot/felix.h             |   1 +
 drivers/net/ethernet/mscc/Kconfig          |   2 +-
 drivers/net/ethernet/mscc/ocelot.c         | 174 ++++++++------
 drivers/net/ethernet/mscc/ocelot.h         |  11 +-
 drivers/net/ethernet/mscc/ocelot_net.c     | 254 +++++++++++++++++----
 drivers/net/ethernet/mscc/ocelot_vsc7514.c |  59 +----
 include/soc/mscc/ocelot.h                  |  21 +-
 8 files changed, 339 insertions(+), 292 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-08-15  1:12 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-18 18:10 [PATCH net-next 0/2] Convert Ocelot and Felix switches to PHYLINK Vladimir Oltean
2019-11-18 18:10 ` [PATCH net-next 1/2] net: mscc: ocelot: treat SPEED_UNKNOWN as SPEED_10 Vladimir Oltean
2019-11-18 18:10 ` [PATCH net-next 2/2] net: mscc: ocelot: convert to PHYLINK Vladimir Oltean
2019-11-19 23:25   ` Russell King - ARM Linux admin
2019-11-18 23:13 ` [PATCH net-next 0/2] Convert Ocelot and Felix switches " Horatiu Vultur
2019-11-19 12:42   ` Vladimir Oltean
2019-11-19 20:48     ` Horatiu Vultur
2019-11-19 20:53       ` Vladimir Oltean
2019-11-19 21:42       ` Andrew Lunn
2019-11-20 12:08         ` Horatiu Vultur
2019-11-20 13:13           ` Vladimir Oltean
2019-11-20 23:21             ` Horatiu Vultur
2019-11-21  0:18               ` Andrew Lunn
2019-11-22 19:30                 ` Horatiu Vultur
2019-11-21 17:51               ` Vladimir Oltean
2019-11-22 19:45                 ` Horatiu Vultur
2019-11-19 23:11 ` David Miller
  -- strict thread matches above, loose matches on Subject: below --
2021-08-15  0:56 [PATCH net-next 0/2] Convert ocelot to phylink Vladimir Oltean
2021-08-15  0:56 ` [PATCH net-next 2/2] net: mscc: ocelot: convert " Vladimir Oltean
2021-08-15  1:12   ` Vladimir Oltean

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