netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/4] net: ethernet: Convert to platform remove callback returning void
@ 2023-11-28 17:38 Uwe Kleine-König
  2023-11-28 17:38 ` [PATCH net-next v2 1/4] net: ethernet: ti: am65-cpsw: " Uwe Kleine-König
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Uwe Kleine-König @ 2023-11-28 17:38 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Roger Quadros
  Cc: Siddharth Vadapalli, Dan Carpenter, netdev, kernel,
	Ravi Gunasekaran, Jesse Brandeburg, Rob Herring, Yunsheng Lin,
	Marek Majtyka, linux-omap, Kumar Kartikeya Dwivedi,
	Stanislav Fomichev, Simon Horman, Jeff Johnson, Wei Fang,
	Nick Child, Christian Marangi

Hello,

in (implicit) v1 of this series
(https://lore.kernel.org/netdev/20231117091655.872426-1-u.kleine-koenig@pengutronix.de)
I tried to address the resource leaks in the three cpsw drivers. However
this is hard to get right without being able to test the changes. So
here comes a series that just converts all drivers below
drivers/net/ethernet to use .remove_new() and adds a comment about the
potential leaks for someone else to fix the problem.

See commit 5c5a7680e67b ("platform: Provide a remove callback that
returns no value") for an extended explanation and the eventual goal.
The TL;DR; is to prevent bugs like the three noticed here.

Note this series results in no change of behaviour apart from improving
the error message for the three cpsw drivers from

	remove callback returned a non-zero value. This will be ignored.

to

	Failed to resume device (-ESOMETHING)

. 

Best regards
Uwe

Uwe Kleine-König (4):
  net: ethernet: ti: am65-cpsw: Convert to platform remove callback returning void
  net: ethernet: ti: cpsw: Convert to platform remove callback returning void
  net: ethernet: ti: cpsw-new: Convert to platform remove callback returning void
  net: ethernet: ezchip: Convert to platform remove callback returning void

 drivers/net/ethernet/ezchip/nps_enet.c   |  6 ++----
 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 15 ++++++++++-----
 drivers/net/ethernet/ti/cpsw.c           | 15 ++++++++++-----
 drivers/net/ethernet/ti/cpsw_new.c       | 15 ++++++++++-----
 4 files changed, 32 insertions(+), 19 deletions(-)

base-commit: 8c87404c76c1911a7ec5b61bf3b2c3858cb95de1
-- 
2.42.0

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

end of thread, other threads:[~2023-11-30 12:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-28 17:38 [PATCH net-next v2 0/4] net: ethernet: Convert to platform remove callback returning void Uwe Kleine-König
2023-11-28 17:38 ` [PATCH net-next v2 1/4] net: ethernet: ti: am65-cpsw: " Uwe Kleine-König
2023-11-30  9:37   ` Roger Quadros
2023-11-28 17:38 ` [PATCH net-next v2 2/4] net: ethernet: ti: cpsw: " Uwe Kleine-König
2023-11-30  9:37   ` Roger Quadros
2023-11-28 17:38 ` [PATCH net-next v2 3/4] net: ethernet: ti: cpsw-new: " Uwe Kleine-König
2023-11-30  9:37   ` Roger Quadros
2023-11-28 17:38 ` [PATCH net-next v2 4/4] net: ethernet: ezchip: " Uwe Kleine-König
2023-11-30 12:10 ` [PATCH net-next v2 0/4] net: ethernet: " patchwork-bot+netdevbpf

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