From patchwork Sat Sep 16 07:58:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13388239 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3568CCD37B9 for ; Sat, 16 Sep 2023 08:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=wsh36hct1krVZrRx54sWxmve47CdcRAZdMoLW/hk53M=; b=L0X+VasV9wbZfo v7lKRy3mnKDpk7F/mOp1woPU6MAxaQQEqudq1IpYMoqNEZTHlHQRKuCYwlWofA/LGUhRc12cyLTDV Mzdo/929oSYBVaeXmVLtAyKhGzBgobwu5JOJoXZb5sVCcZYjU3M2UBp+yuZkF2O+MzeHRjas29vTN 0m5Lhjqym8H7FUy6hMNYfa2vMYcGrA5YCdcFvm1bftiPLg0TEfOOFxGmlYUiBJ75nV+UBUDyUjn/L 6eZhjNczAfBTHj3sR7taJ/EhlIUJ7my7UIgNtVhjzSIijNCSEzo1yuEd5DvvEM33+DNs6Wd8i+TLt nnDMwGHeHpIW7RMBhBLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qhQNz-00C8bO-1W; Sat, 16 Sep 2023 08:10:39 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qhQNv-00C8aq-1V; Sat, 16 Sep 2023 08:10:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8F278608C0; Sat, 16 Sep 2023 08:10:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9AE5EC433C8; Sat, 16 Sep 2023 08:10:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694851830; bh=Vn2DREJrAn8aRUxiz3WQryX63T4UuS6DU0+Ekb7wTm4=; h=From:To:Cc:Subject:Date:From; b=n/BOcYygBC0G4RcSGiatuCr/r8q4kLlIb9Oibd9j78tGln5AE7VUXlKzUGv3oZoNe yZkB2iu0/WGky4eM/U3qo0reTujDlH0LCjfJd6NKB1BztVhzQc/jTLP9JhYsCVNGB5 xc4hpPrN4FPCFKfdktUEMdT46R/j6pjWt9Eisaw4JQOs3thUJmzZQY3nrgKSEzYShd AGDnPuV4q97Ka6oajzo+OnYG8rEjS/kKyl1ZvnR/ff6K7djRnbTC01GhRabGmls9I2 ST6JK+dDTWDbGe6jr2DkerJrghE3QC2l+ErthmzjWKTak7ZhGHgAr479NyhLAZFLR8 QctLBFjj0spCQ== From: Jisheng Zhang To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Vladimir Zapolskiy , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Emil Renner Berthing , Samin Guo , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Thierry Reding , Nobuhiro Iwamatsu , Russell King , Matthias Brugger , AngeloGioacchino Del Regno Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH net-next v2 00/22] convert to devm_stmmac_probe_config_dt Date: Sat, 16 Sep 2023 15:58:06 +0800 Message-Id: <20230916075829.1560-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230916_011035_610959_222F792A X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Russell pointed out there's a new devm_stmmac_probe_config_dt() helper now when reviewing my starfive gmac error handling patch[1]. After greping the code, this nice helper was introduced by Bartosz in [2], I think it's time to convert all dwmac users to this helper and finally complete the TODO in [2] "but once all users of the old stmmac_pltfr_remove() are converted to the devres helper, it will be renamed back to stmmac_pltfr_remove() and the no_dt function removed." Link: https://lore.kernel.org/netdev/ZOtWmedBsa6wQQ6+@shell.armlinux.org.uk/ [1] Link: https://lore.kernel.org/all/20230623100417.93592-1-brgl@bgdev.pl/ [2] Since v1: - rebase on new net-next - add make stmmac_{probe|remove}_config_dt static as suggested by Russell. Jisheng Zhang (23): net: stmmac: dwmac-anarion: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-dwc-qos-eth: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-generic: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-generic: use devm_stmmac_pltfr_probe() net: stmmac: dwmac-imx: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-ingenic: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-intel-plat: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-ipq806x: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-lpc18xx: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-mediatek: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-meson: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-meson8b: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-rk: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-socfpga: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-starfive: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-sti: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-stm32: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-sun8i: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-sunxi: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-tegra: use devm_stmmac_probe_config_dt() net: stmmac: dwmac-visconti: use devm_stmmac_probe_config_dt() net: stmmac: rename stmmac_pltfr_remove_no_dt to stmmac_pltfr_remove net: stmmac: make stmmac_{probe|remove}_config_dt static .../ethernet/stmicro/stmmac/dwmac-anarion.c | 10 +-- .../stmicro/stmmac/dwmac-dwc-qos-eth.c | 15 +--- .../ethernet/stmicro/stmmac/dwmac-generic.c | 15 +--- .../net/ethernet/stmicro/stmmac/dwmac-imx.c | 13 ++-- .../ethernet/stmicro/stmmac/dwmac-ingenic.c | 33 +++------ .../stmicro/stmmac/dwmac-intel-plat.c | 25 +++---- .../ethernet/stmicro/stmmac/dwmac-ipq806x.c | 27 +++---- .../ethernet/stmicro/stmmac/dwmac-lpc18xx.c | 19 ++--- .../ethernet/stmicro/stmmac/dwmac-mediatek.c | 6 +- .../net/ethernet/stmicro/stmmac/dwmac-meson.c | 25 ++----- .../ethernet/stmicro/stmmac/dwmac-meson8b.c | 53 +++++--------- .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 14 ++-- .../ethernet/stmicro/stmmac/dwmac-socfpga.c | 16 ++--- .../ethernet/stmicro/stmmac/dwmac-starfive.c | 10 +-- .../net/ethernet/stmicro/stmmac/dwmac-sti.c | 14 ++-- .../net/ethernet/stmicro/stmmac/dwmac-stm32.c | 17 ++--- .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 6 +- .../net/ethernet/stmicro/stmmac/dwmac-sunxi.c | 23 +++--- .../net/ethernet/stmicro/stmmac/dwmac-tegra.c | 10 ++- .../ethernet/stmicro/stmmac/dwmac-visconti.c | 18 ++--- .../ethernet/stmicro/stmmac/stmmac_platform.c | 70 ++++++------------- .../ethernet/stmicro/stmmac/stmmac_platform.h | 5 -- 22 files changed, 127 insertions(+), 317 deletions(-) Reviewed-by: Emil Renner Berthing Reviewed-by: Serge Semin