All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Add MV88E61xx DSA driver and use on gwventana
@ 2022-05-23 18:25 Tim Harvey
  2022-05-23 18:25 ` [PATCH v3 1/8] net: mdio-uclass: scan for dm mdio children on post-bind Tim Harvey
                   ` (7 more replies)
  0 siblings, 8 replies; 26+ messages in thread
From: Tim Harvey @ 2022-05-23 18:25 UTC (permalink / raw)
  To: Joe Hershberger, Ramon Fried, Vladimir Oltean, u-boot,
	Stefano Babic, Fabio Estevam, NXP i . MX U-Boot Team,
	Marek Behún
  Cc: Chris Packham, Anatolij Gustschin, Tim Harvey

This series adds a DSA driver for the MV88E61xx based on
drivers/net/phy/mv88e61xx and uses in on the gwventana_gw5904_defconfig.

The hope is that the other three boards that use the MV88E61xx driver
can move to this as well eventually so that we can remove the non-dm
driver and the 4 Kconfig options it requires.

The MV88E61xx has an MDIO interface thus DM_MDIO must be used so support
for a UCLASS_MDIO driver is added to the fec_mxc ethernet driver in a
way that allows a fallback to the previous non DM_MDIO case as there are
many boards out there using this driver that define DM_MDIO but do not
have the required dt props for a DM_MDIO driver which would cause a
regression.

Additionally some other patches are here suggested by Vladimir:
 - ensure MDIO children are scanned on post-bind is needed
 - sanity check DSA driver required ops are present
 - allow DSA drivers to not require xmit/recv functions
 - remove unecessary xmit/recv functions from ksz9477 driver

v3:
 - fix mdios node in dt
 - add Vladimir's rb tag's

v2:
 - added Ramon's rb tag's to first two patches
 - add patches for dsa-uclass to sanity check ops and make xmit/recv
   optional
 - fec: fix fallback for non conforming DM_MDIO dts
 - mv88e61xx:
  - rebase on v2022.07-rc2 (use ofnode_get_phy_node)
  - remove unused commented out fields from struct
  - remove unused PORT_MASK macro
  - remove phy from priv struct name
  - refactor code from original drivers/net/phy/mv88e61xx with
    suggestions from review to consolidate some functions
    into mv88e61xx_dsa_port_enable
  - remove unecessary skiping of disabling of CPU port
  - remove unecessary dev_set_parent_priv
  - remove unnecessary static init flag
  - replace debug with a dev_warn if switch device-id unsupported
  - remove unnecessary xmit/recv functions as we rely on the fact that
    only a single port is active instead of mangling packets

Tested on a Gateworks GW5904 which has a Marvell 88E6176 switch hanging
off the IMX6 FEC.

Best Regards,

Tim

Tim Harvey (8):
  net: mdio-uclass: scan for dm mdio children on post-bind
  net: dsa: move cpu port probe to dsa_post_probe
  net: dsa: ensure dsa driver has proper ops
  net: dsa: allow rcv() and xmit() to be optional
  net: ksz9477: remove unnecessary xmit and recv functions
  net: fec: add support for DM_MDIO
  net: add MV88E61xx DSA driver
  board: gw_ventana: enable MV88E61XX DSA support

 arch/arm/dts/imx6qdl-gw5904.dtsi        |  41 ++
 board/gateworks/gw_ventana/gw_ventana.c |  50 +-
 configs/gwventana_gw5904_defconfig      |   7 +-
 drivers/net/Kconfig                     |   7 +
 drivers/net/Makefile                    |   1 +
 drivers/net/fec_mxc.c                   |  90 ++-
 drivers/net/ksz9477.c                   |  23 -
 drivers/net/mv88e61xx.c                 | 843 ++++++++++++++++++++++++
 net/dsa-uclass.c                        |  58 +-
 net/mdio-uclass.c                       |   4 +
 10 files changed, 1051 insertions(+), 73 deletions(-)
 create mode 100644 drivers/net/mv88e61xx.c

-- 
2.17.1


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

end of thread, other threads:[~2022-08-08 15:22 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 18:25 [PATCH v3 0/8] Add MV88E61xx DSA driver and use on gwventana Tim Harvey
2022-05-23 18:25 ` [PATCH v3 1/8] net: mdio-uclass: scan for dm mdio children on post-bind Tim Harvey
2022-05-23 18:25 ` [PATCH v3 2/8] net: dsa: move cpu port probe to dsa_post_probe Tim Harvey
2022-05-23 18:25 ` [PATCH v3 3/8] net: dsa: ensure dsa driver has proper ops Tim Harvey
2022-05-23 18:25 ` [PATCH v3 4/8] net: dsa: allow rcv() and xmit() to be optional Tim Harvey
2022-05-23 18:25 ` [PATCH v3 5/8] net: ksz9477: remove unnecessary xmit and recv functions Tim Harvey
2022-05-23 18:25 ` [PATCH v3 6/8] net: fec: add support for DM_MDIO Tim Harvey
2022-05-23 18:25 ` [PATCH v3 7/8] net: add MV88E61xx DSA driver Tim Harvey
2022-06-20 11:58   ` Vladimir Oltean
2022-06-20 23:37     ` Tim Harvey
2022-06-21  7:21       ` Vladimir Oltean
2022-06-21 15:11         ` Tim Harvey
2022-06-23 12:43           ` Vladimir Oltean
2022-08-07  0:07             ` Ramon Fried
2022-08-08 15:21               ` Tim Harvey
2022-05-23 18:25 ` [PATCH v3 8/8] board: gw_ventana: enable MV88E61XX DSA support Tim Harvey
2022-06-14 17:00   ` Tim Harvey
2022-06-14 18:55     ` Vladimir Oltean
2022-06-20 11:42   ` Vladimir Oltean
2022-06-21 16:57     ` Tim Harvey
2022-06-23 12:42       ` Vladimir Oltean
2022-06-23 16:07         ` Tim Harvey
2022-06-24 10:25   ` Vladimir Oltean
2022-06-24 23:16     ` Tim Harvey
2022-06-25  0:13       ` Vladimir Oltean
2022-06-25  0:25         ` Tim Harvey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.