All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: stmmac: pass struct device to init/exit
@ 2025-11-19 10:02 ` Russell King (Oracle)
  0 siblings, 0 replies; 24+ messages in thread
From: Russell King (Oracle) @ 2025-11-19 10:02 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit
  Cc: Alexandre Torgue, Andrew Lunn, Chen-Yu Tsai, David S. Miller,
	Drew Fustini, Eric Dumazet, Fu Wei, Guo Ren, Heiko Stuebner,
	Jakub Kicinski, Jan Petrous, Jernej Skrabec, Keguang Zhang,
	Lad Prabhakar, linux-arm-kernel, linux-mips, linux-renesas-soc,
	linux-riscv, linux-rockchip, linux-stm32, linux-sunxi,
	Maxime Chevallier, Maxime Coquelin, netdev, Paolo Abeni, s32,
	Samuel Holland

Rather than passing the platform device to the ->init() and ->exit()
methods, make these methods useful for other devices by passing the
struct device instead. Update the implementations appropriately for
this change.

Move the calls for these methods into the core driver's probe and
remove methods from the stmmac_platform layer.

Convert dwmac-rk to use ->init() and ->exit().

 .../net/ethernet/stmicro/stmmac/dwmac-anarion.c    |  4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-eic7700.c    |  4 +-
 .../net/ethernet/stmicro/stmmac/dwmac-loongson1.c  | 12 +++---
 .../ethernet/stmicro/stmmac/dwmac-renesas-gbeth.c  |  4 +-
 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c     | 47 +++++++++-------------
 drivers/net/ethernet/stmicro/stmmac/dwmac-s32.c    | 14 +++----
 .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c    |  2 +-
 drivers/net/ethernet/stmicro/stmmac/dwmac-sti.c    |  4 +-
 drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c  | 10 ++---
 drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c  |  4 +-
 drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c  |  2 +-
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 47 ++++++++++++++++------
 .../net/ethernet/stmicro/stmmac/stmmac_platform.c  | 35 +++++-----------
 include/linux/stmmac.h                             |  4 +-
 14 files changed, 94 insertions(+), 99 deletions(-)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!


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

end of thread, other threads:[~2025-11-21  2:01 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-19 10:02 [PATCH net-next 0/3] net: stmmac: pass struct device to init/exit Russell King (Oracle)
2025-11-19 10:02 ` Russell King (Oracle)
2025-11-19 10:02 ` Russell King (Oracle)
2025-11-19 10:03 ` [PATCH net-next 1/3] net: stmmac: pass struct device to init()/exit() methods Russell King (Oracle)
2025-11-19 10:03   ` Russell King (Oracle)
2025-11-19 10:03   ` Russell King (Oracle)
2025-11-19 14:43   ` Chen-Yu Tsai
2025-11-19 14:43     ` Chen-Yu Tsai
2025-11-19 14:43     ` Chen-Yu Tsai
2025-11-19 15:03   ` Maxime Chevallier
2025-11-19 15:03     ` Maxime Chevallier
2025-11-19 15:03     ` Maxime Chevallier
2025-11-19 10:03 ` [PATCH net-next 2/3] net: stmmac: move probe/remove calling of init/exit Russell King (Oracle)
2025-11-19 10:03   ` Russell King (Oracle)
2025-11-19 10:03   ` Russell King (Oracle)
2025-11-19 15:04   ` Maxime Chevallier
2025-11-19 15:04     ` Maxime Chevallier
2025-11-19 15:04     ` Maxime Chevallier
2025-11-19 10:04 ` [PATCH net-next 3/3] net: stmmac: rk: convert to init()/exit() methods Russell King (Oracle)
2025-11-19 10:04   ` Russell King (Oracle)
2025-11-19 10:04   ` Russell King (Oracle)
2025-11-21  2:00 ` [PATCH net-next 0/3] net: stmmac: pass struct device to init/exit patchwork-bot+netdevbpf
2025-11-21  2:00   ` patchwork-bot+netdevbpf
2025-11-21  2:00   ` patchwork-bot+netdevbpf

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.