From patchwork Fri Nov 17 09:16:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 13458561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD58DC197A0 for ; Fri, 17 Nov 2023 09:17:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230051AbjKQJR2 (ORCPT ); Fri, 17 Nov 2023 04:17:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjKQJR1 (ORCPT ); Fri, 17 Nov 2023 04:17:27 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8372318B for ; Fri, 17 Nov 2023 01:17:24 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r3uyQ-0007gN-Qv; Fri, 17 Nov 2023 10:17:14 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r3uyP-009e64-03; Fri, 17 Nov 2023 10:17:13 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1r3uyO-002yJU-MG; Fri, 17 Nov 2023 10:17:12 +0100 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Siddharth Vadapalli , Roger Quadros , Dan Carpenter , netdev@vger.kernel.org, kernel@pengutronix.de, Ravi Gunasekaran , Simon Horman , Yunsheng Lin , Stanislav Fomichev , Marek Majtyka , Rob Herring , Mugunthan V N , linux-omap@vger.kernel.org, Alexei Starovoitov , Gerhard Engleder , Ilias Apalodimas , Kumar Kartikeya Dwivedi , Jesse Brandeburg , Alexander Duyck , Christian Marangi , Alex Elder Subject: [PATCH 0/7] net: ethernet: Convert to platform remove callback Date: Fri, 17 Nov 2023 10:16:56 +0100 Message-ID: <20231117091655.872426-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.42.0.586.gbc5204569f7d.dirty MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1308; i=u.kleine-koenig@pengutronix.de; h=from:subject; bh=wXCgBNxbg3ysP3JCSEHurrmf3eiwdq62Y4zXvsuYJQU=; b=owGbwMvMwMXY3/A7olbonx/jabUkhtRw/XbnB608Ouuryo9rPfD9F+Vqr9ARn/g3gvnZri3Xm owvNz/vZDRmYWDkYpAVU2Sxb1yTaVUlF9m59t9lmEGsTCBTGLg4BWAi1Ws5GPq1dq9z2uzbsLPK p+r0pd+2Hx9wJW22fv+zS7fESOtk5WyXrWUbNf94JGUtcAjsENmZUthWLTZp0rGqNZ5KTYnPIp5 KXI1XyHt1UUMsb096zWuH7MIXB+dnd9y3PFwlz7bMjWPn3H09+zRdUq84BLyX9nNpv3VwO88Rlj naM8wPC1v+P72+Wyi/Reys78mVdoYLUmMaNAt2On6qVeNhTjE/qCWz3/N+4jFJa/b/eWy3pWdnX bloqia70u3Gq6TKkK83fBv3SYkdyhbW+HJjmZdOIFe7q83vttXJ30sNWaw3snOUeCux9cgEfDr4 KOly6Ma/Gky5VdEp3esfrI77NOvgWfeQ275P3OeaxykBAA== X-Developer-Key: i=u.kleine-koenig@pengutronix.de; a=openpgp; fpr=0D2511F322BFAB1C1580266BE2DCDD9132669BD6 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-omap@vger.kernel.org To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hello, after three fixes this series converts the remaining four platform drivers below drivers/net/ethernet that don't use .remove_new yet to do that. 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 fixed here. Best regards Uwe Uwe Kleine-König (7): net: ethernet: ti: am65-cpsw: Don't error out in .remove() net: ethernet: ti: cpsw: Don't error out in .remove() net: ethernet: ti: cpsw-new: Don't error out in .remove() 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 | 12 +++++++----- drivers/net/ethernet/ti/cpsw.c | 21 ++++++++++++++------- drivers/net/ethernet/ti/cpsw_new.c | 21 ++++++++++++++------- 4 files changed, 37 insertions(+), 23 deletions(-) base-commit: eff99d8edbed7918317331ebd1e365d8e955d65e