Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1727875rdg; Sat, 14 Oct 2023 15:01:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFspgp5E5IEer+GN9gJKhbZ4p5OjNRbbMYRo8KhY2/02FsHJMlO4pEoFkydnzNEKtbYnu56 X-Received: by 2002:a17:90a:8001:b0:27d:348:94a8 with SMTP id b1-20020a17090a800100b0027d034894a8mr10316582pjn.6.1697320882220; Sat, 14 Oct 2023 15:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697320882; cv=none; d=google.com; s=arc-20160816; b=gCY553mMR0XTC0rBff5ffb7YB6tsdQRxdOT2l6/ckHfDs2D4T8ZC8qF7M0FFtISGG3 XJTLcRH4oR5BTNrIg4hPmkG4haK4tyJMZX83gR5lfdURJu9eXpmhQzzcttYEq4+2Ee0c +iIrewW1udAzXhJT9Ghq+DzltQpcatouBpsCeTJ4cAYoafOLwUa6eORO+/Jd/z5a1rqE COinDSQlWz/nVXPRxKc9BDOXKKdJ094DMe2AG/eSLv1uGeAe8N0DXpgwIx6T9Oh7fLe9 nhCLImEWVigr3P5qYFMjIuS4QUjcCabl7ASHc4ls+I/OFCouEDZ3PBfdLFJTFEk9PCuz kW6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Rxk9UuPmauXPnLXSOfyJwJxNVmwtKUPJ9oJcXJc8W2M=; fh=dNqxO+rWjvryo/h1xNO64A2iUsmw75RzSKn2n0ONBq0=; b=jU+AtKqNw7T3WKcBNOWAiRX3AcbfFkX2drpD3hL9+GmGGCHqUYpaSMC1zG9MGlfVYG jNMKEhP1JaThWldmZ85/xVm5oum0uLGizBeR7j8lM2mvutwSFAkkG183HpquLqM01Q92 JiPfK8md1J0hYUarkKEk1nTDiDAbXlBd9xyM11fSQAUxLoDy66DnOXFcim/07BeAtirq M1tjEPxM/qDrdDfdPZmW35SSBDn2vKPe4QDqO2xgYZ19Pl05jlAnEd+Pbn3Z7P6FZRWJ Rx6KVNeRHJfwMAQTZNdu4Yp6k5VKrGcpdsJrEZ3tFGfoegQZ0bSep2yYz4VcLUL2zAIF 9BMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id v8-20020a17090a898800b00276c28cdd4fsi2898505pjn.31.2023.10.14.15.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 15:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 485B68077812; Sat, 14 Oct 2023 15:00:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjJNWAe (ORCPT + 99 others); Sat, 14 Oct 2023 18:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231987AbjJNWAc (ORCPT ); Sat, 14 Oct 2023 18:00:32 -0400 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 D38B9C9 for ; Sat, 14 Oct 2023 15:00:30 -0700 (PDT) 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 1qrmfV-0001zq-2D; Sat, 14 Oct 2023 23:59:33 +0200 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 1qrmfI-001hum-RA; Sat, 14 Oct 2023 23:59:20 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qrmfI-00GSU5-Fm; Sat, 14 Oct 2023 23:59:20 +0200 Date: Sat, 14 Oct 2023 23:59:18 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: soc@kernel.org Cc: Nishanth Menon , Herve Codina , Bjorn Andersson , Heiko =?utf-8?Q?St=C3=BCbner?= , Mateusz Holenko , Muhammad Usama Anjum , Matthias Brugger , "Conor.Dooley" , Thierry Reding , Alim Akhtar , linux-riscv@lists.infradead.org, Karol Gugala , Qiang Zhao , Hitomi Hasegawa , Rob Herring , linux-samsung-soc@vger.kernel.org, linux-aspeed@lists.ozlabs.org, Ruan Jinjie , Yinbo Zhu , Jon Hunter , linux-rockchip@lists.infradead.org, Gabriel Somlo , Andy Gross , Huisong Li , Joel Stanley , Yang Yingliang , Sumit Gupta , "zhang.songyi" , Zev Weiss , Arnd Bergmann , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, Lubomir Rintel , Krzysztof Halasa , loongarch@lists.linux.dev, Santosh Shilimkar , linux-tegra@vger.kernel.org, Michal Simek , linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , Daire McNamara , linux-kernel@vger.kernel.org, Shang XiaoJing , Leo Li , Konrad Dybcio , Andrew Jeffery , Krzysztof Kozlowski , Pengutronix Kernel Team , linux-mediatek@lists.infradead.org, Nick Alcock , linuxppc-dev@lists.ozlabs.org Subject: [GIT PULL] Convert drivers/soc to struct platform_driver::remove_new() Message-ID: <20231014215918.prqhkk7kp2vobe3a@pengutronix.de> References: <20230925095532.1984344-1-u.kleine-koenig@pengutronix.de> <1b2fddf8-c0a6-4afa-8ad0-f280dea1607f@app.fastmail.com> <20230928061449.xxqhyyrg6e357dn2@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7gysnf7ldsm65nug" Content-Disposition: inline In-Reply-To: <20230928061449.xxqhyyrg6e357dn2@pengutronix.de> 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-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 14 Oct 2023 15:00:49 -0700 (PDT) --7gysnf7ldsm65nug Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Arnd, the following changes since commit 0bb80ecc33a8fb5a682236443c1e740d5c917d1d: Linux 6.6-rc1 (2023-09-10 16:28:41 -0700) are available in the Git repository at: https://git.pengutronix.de/git/ukl/linux tags/platform-remove-void-soc-fo= r-6.7-rc for you to fetch changes up to e77e6e3e909d33361c58af848a96e1f7f71ba7e4: soc/pxa: ssp: Convert to platform remove callback returning void (2023-10= -14 23:27:34 +0200) ---------------------------------------------------------------- Convert drivers/soc to struct platform_driver::remove_new() This PR contains the patches I sent in the series available at https://lore.kernel.org/all/20230925095532.1984344-1-u.kleine-koenig@pengut= ronix.de that were not yet picked up in next as of next-20231013. It converts all drivers below drivers/soc to let their remove callback return void. See commit 5c5a7680e67b ("platform: Provide a remove callback that returns no value") for the rationale. ---------------------------------------------------------------- On Thu, Sep 28, 2023 at 08:14:49AM +0200, Uwe Kleine-K=F6nig wrote: > On Wed, Sep 27, 2023 at 04:01:58PM -0700, Bjorn Andersson wrote: > > On Wed, Sep 27, 2023 at 10:43:16AM +0200, Arnd Bergmann wrote: > > > On Wed, Sep 27, 2023, at 04:25, Joel Stanley wrote: > > > > On Mon, 25 Sept 2023 at 09:55, Uwe Kleine-K=F6nig wrote: > > > >> > > > >> this series converts all platform drivers below drivers/soc to use > > > >> .remove_new(). The motivation is to get rid of an integer return c= ode > > > >> that is (mostly) ignored by the platform driver core and error pro= ne on > > > >> the driver side. > > > >> > > > >> See commit 5c5a7680e67b ("platform: Provide a remove callback that > > > >> returns no value") for an extended explanation and the eventual go= al. > > > >> > > > >> As there is no single maintainer team for drivers/soc, I suggest t= he > > > >> individual maintainers to pick up "their" patches. > > > > > > > > I'd be happy if Arnd merged the lot at once. Arnd, what do you thin= k? > > > > > > > > If that will be too messy then I understand. I have queued the aspe= ed > > > > ones locally and will push that out if we decide that's the best way > > > > to go. > > >=20 > > > The main downside of merging it all at once through the soc tree > > > is that there may be patches that conflict with other work going on > > > in individual drivers. > > >=20 > > > What I'd suggest doing here is: > > >=20 > > > - have platform maintainers pick up patches for their drivers > > > if that is their preference for any reason > >=20 > > I'd prefer this for the qcom drivers at least, please let me know if you > > would like me to proceed. > > I can send a pull request as Arnd suggested. So iff you want the qcom > drivers not be a part of that PR, just make sure they appear in next > during the next week. :-) > > > > - get a pull request from Uwe for the soc tree for anything that has > > > not been picked up in one or two weeks from now Here comes the promised PR. The qcom patches are among the set of patches dropped here as they are already in next. To state the obvious: This is merge window material and the idea is that it's pulled into armsoc and then included in the armsoc v6.7-rc1 PR to Linus Torvalds. I hope it's not too late for that already. Best regards and thanks Uwe Uwe Kleine-K=F6nig (12): soc/fsl: dpaa2-console: Convert to platform remove callback returning= void soc/fsl: cpm: qmc: Convert to platform remove callback returning void soc/fsl: cpm: tsa: Convert to platform remove callback returning void soc/fujitsu: a64fx-diag: Convert to platform remove callback returnin= g void soc/hisilicon: kunpeng_hccs: Convert to platform remove callback retu= rning void soc/ixp4xx: ixp4xx-npe: Convert to platform remove callback returning= void soc/ixp4xx: ixp4xx-qmgr: Convert to platform remove callback returnin= g void soc/litex: litex_soc_ctrl: Convert to platform remove callback return= ing void soc/loongson: loongson2_guts: Convert to platform remove callback ret= urning void soc/mediatek: mtk-devapc: Convert to platform remove callback returni= ng void soc/mediatek: mtk-mmsys: Convert to platform remove callback returnin= g void soc/pxa: ssp: Convert to platform remove callback returning void drivers/soc/fsl/dpaa2-console.c | 6 ++---- drivers/soc/fsl/qe/qmc.c | 6 ++---- drivers/soc/fsl/qe/tsa.c | 5 ++--- drivers/soc/fujitsu/a64fx-diag.c | 6 ++---- drivers/soc/hisilicon/kunpeng_hccs.c | 6 ++---- drivers/soc/ixp4xx/ixp4xx-npe.c | 6 ++---- drivers/soc/ixp4xx/ixp4xx-qmgr.c | 5 ++--- drivers/soc/litex/litex_soc_ctrl.c | 5 ++--- drivers/soc/loongson/loongson2_guts.c | 6 ++---- drivers/soc/mediatek/mtk-devapc.c | 6 ++---- drivers/soc/mediatek/mtk-mmsys.c | 6 ++---- drivers/soc/pxa/ssp.c | 6 ++---- 12 files changed, 24 insertions(+), 45 deletions(-) --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --7gysnf7ldsm65nug Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmUrDzUACgkQj4D7WH0S /k5j4gf/bF9kgxVuSiift0gAwVEYG58vErpILxnhavoGUJkIvS/2rxDkuHmTNQ5X QalfUGigAoE8LztKGVtaC0Xx+ie+VRIk5mw7tId7GP1bfzJnrekEsnRe0feT2zy4 2d7Jc3JZ2H+C31SObKtmKNcav5jLzXd8vN/RS+w/tj9/nE/paVB+kcHIX17ZPGE2 zIumGo0OqOAmN6fNwoqyqQuy22i5ECmPHi9DAJkeOg4/Hu017wBfW2V/FvHA+eee KpnkXofsyZDqGCLvlNHd4qBQG/88+W7qcVxbCoDebo18y86tj2IbgeeFfbihxKLO lcwKEm4ptKtWDPzYdLgO7nELl73FRw== =h2pz -----END PGP SIGNATURE----- --7gysnf7ldsm65nug--