All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/23] net: miiphybb: Get rid of global bb_miiphy_buses[]
@ 2025-02-22 20:33 Marek Vasut
  2025-02-22 20:33 ` [PATCH v3 01/23] net: ravb: Drop empty init callback Marek Vasut
                   ` (23 more replies)
  0 siblings, 24 replies; 39+ messages in thread
From: Marek Vasut @ 2025-02-22 20:33 UTC (permalink / raw)
  To: u-boot
  Cc: Marek Vasut, Christian Marangi, Ilias Apalodimas,
	Jerome Forissier, Jim Liu, Joe Hershberger, Mario Six,
	Michal Simek, Nobuhiro Iwamatsu, Paul Barker, Ramon Fried,
	Simon Glass, Sughosh Ganu, Tom Rini

Get rid of global bb_miiphy_buses[] which does not fit well with U-Boot
DM in favor of usual per-ethernet-MAC-driver-instance MDIO bus accessors.

Introduce the ability to allocate struct bb_miiphy_bus {} and make it wrap
struct mii_dev {}, so the struct mii_dev can be passed into MDIO bus access
infrastructure as usual. When the MDIO bus access infrastructure attempts to
access the MDIO bus and invokes any of the bbmiiphy accessors, those accessors
are passed the structu mii_dev {}, but can also access struct bb_miiphy_bus
using plain container_of() .

Clean up the drivers and update them to match.

Marek Vasut (23):
  net: ravb: Drop empty init callback
  net: sh_eth: Drop empty init callback
  net: designware: Drop NULL priv assignment
  net: ravb: Reorder bb_miiphy functions
  net: sh_eth: Reorder bb_miiphy functions
  arm: mvebu: a38x: Reorder bb_miiphy functions
  net: designware: Reorder bb_miiphy functions
  arm: mvebu: a38x: Call bb_miiphy init directly in driver probe
  net: miiphybb: Drop bb_miiphy_init() and .init callback
  net: designware: Drop bus index
  net: designware: Extract bbmiiphy initialization into dedicated
    function
  net: miiphy: Introduce mdio_init()
  net: miiphybb: Introduce bb_miiphy_alloc()/bb_miiphy_free() wrappers
  arm: mvebu: a38x: Allocate bb_miiphy using bb_miiphy_alloc() and fill
    in callbacks
  net: ravb: Allocate bb_miiphy using bb_miiphy_alloc() and fill in
    callbacks
  net: sh_eth: Allocate bb_miiphy using bb_miiphy_alloc() and fill in
    callbacks
  net: designware: Allocate bb_miiphy using bb_miiphy_alloc() and fill
    in callbacks
  net: miiphybb: Use container_of() in bb_miiphy_getbus()
  net: miiphybb: Drop name field from struct bb_miiphy_bus
  arm: mvebu: a38x: Drop use of miiphy_get_dev_by_name()
  net: ravb: Drop use of miiphy_get_dev_by_name()
  net: sh_eth: Drop use of miiphy_get_dev_by_name()
  net: miiphybb: Drop bb_miiphy_buses and bb_miiphy_buses_num

 board/gdsys/a38x/ihs_phys.c | 237 ++++++++++++++------------------
 common/board_r.c            |   3 -
 common/miiphyutil.c         |  13 +-
 drivers/net/designware.c    | 263 ++++++++++++++++++++----------------
 drivers/net/phy/miiphybb.c  |  36 ++---
 drivers/net/ravb.c          | 159 ++++++++++------------
 drivers/net/sh_eth.c        | 179 ++++++++++++------------
 include/miiphy.h            |  17 +--
 8 files changed, 438 insertions(+), 469 deletions(-)

---
Cc: Christian Marangi <ansuelsmth@gmail.com>
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Jerome Forissier <jerome.forissier@linaro.org>
Cc: Jim Liu <JJLIU0@nuvoton.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Mario Six <mario.six@gdsys.cc>
Cc: Michal Simek <michal.simek@amd.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Paul Barker <paul.barker.ct@bp.renesas.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Sughosh Ganu <sughosh.ganu@linaro.org>
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@lists.denx.de

-- 
2.47.2


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

end of thread, other threads:[~2025-03-03 23:13 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-22 20:33 [PATCH v3 00/23] net: miiphybb: Get rid of global bb_miiphy_buses[] Marek Vasut
2025-02-22 20:33 ` [PATCH v3 01/23] net: ravb: Drop empty init callback Marek Vasut
2025-02-22 20:33 ` [PATCH v3 02/23] net: sh_eth: " Marek Vasut
2025-02-22 20:33 ` [PATCH v3 03/23] net: designware: Drop NULL priv assignment Marek Vasut
2025-02-22 20:33 ` [PATCH v3 04/23] net: ravb: Reorder bb_miiphy functions Marek Vasut
2025-02-22 20:33 ` [PATCH v3 05/23] net: sh_eth: " Marek Vasut
2025-02-26 17:08   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 06/23] arm: mvebu: a38x: " Marek Vasut
2025-02-26 17:09   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 07/23] net: designware: " Marek Vasut
2025-02-26 17:10   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 08/23] arm: mvebu: a38x: Call bb_miiphy init directly in driver probe Marek Vasut
2025-02-26 17:12   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 09/23] net: miiphybb: Drop bb_miiphy_init() and .init callback Marek Vasut
2025-02-22 20:33 ` [PATCH v3 10/23] net: designware: Drop bus index Marek Vasut
2025-02-26 17:15   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 11/23] net: designware: Extract bbmiiphy initialization into dedicated function Marek Vasut
2025-02-26 17:16   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 12/23] net: miiphy: Introduce mdio_init() Marek Vasut
2025-02-22 20:33 ` [PATCH v3 13/23] net: miiphybb: Introduce bb_miiphy_alloc()/bb_miiphy_free() wrappers Marek Vasut
2025-02-22 20:33 ` [PATCH v3 14/23] arm: mvebu: a38x: Allocate bb_miiphy using bb_miiphy_alloc() and fill in callbacks Marek Vasut
2025-02-26 17:18   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 15/23] net: ravb: " Marek Vasut
2025-02-28 13:28   ` Paul Barker
2025-03-03 23:13     ` Marek Vasut
2025-02-22 20:33 ` [PATCH v3 16/23] net: sh_eth: " Marek Vasut
2025-02-26 17:19   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 17/23] net: designware: " Marek Vasut
2025-02-26 17:19   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 18/23] net: miiphybb: Use container_of() in bb_miiphy_getbus() Marek Vasut
2025-02-22 20:33 ` [PATCH v3 19/23] net: miiphybb: Drop name field from struct bb_miiphy_bus Marek Vasut
2025-02-22 20:33 ` [PATCH v3 20/23] arm: mvebu: a38x: Drop use of miiphy_get_dev_by_name() Marek Vasut
2025-02-26 17:20   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 21/23] net: ravb: " Marek Vasut
2025-02-22 20:33 ` [PATCH v3 22/23] net: sh_eth: " Marek Vasut
2025-02-26 17:20   ` Paul Barker
2025-02-22 20:33 ` [PATCH v3 23/23] net: miiphybb: Drop bb_miiphy_buses and bb_miiphy_buses_num Marek Vasut
2025-02-26  8:51 ` [PATCH v3 00/23] net: miiphybb: Get rid of global bb_miiphy_buses[] Paul Barker
2025-02-26 12:43   ` Marek Vasut

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.