linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"Russell King" <linux@armlinux.org.uk>,
	"Viresh Kumar" <viresh.kumar@linaro.org>,
	"Ulf Hansson" <ulf.hansson@linaro.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Alan Stern" <stern@rowland.harvard.edu>,
	"Mark Brown" <broonie@kernel.org>,
	"Shawn Guo" <shawnguo@kernel.org>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Aaro Koskinen" <aaro.koskinen@iki.fi>,
	"Janusz Krzysztofik" <jmkrzyszt@gmail.com>,
	"Tony Lindgren" <tony@atomide.com>,
	"Daniel Mack" <daniel@zonque.org>,
	"Haojian Zhuang" <haojian.zhuang@gmail.com>,
	"Robert Jarzmik" <robert.jarzmik@free.fr>
Cc: linux-arm-kernel@lists.infradead.org,
	"Pengutronix Kernel Team" <kernel@pengutronix.de>,
	"Fabio Estevam" <festevam@gmail.com>,
	"NXP Linux Team" <linux-imx@nxp.com>,
	Linux-OMAP <linux-omap@vger.kernel.org>
Subject: Re: [PATCH 0/8] ARM: Convert to platform remove callback returning void
Date: Wed, 08 Mar 2023 16:06:47 +0100	[thread overview]
Message-ID: <adaf8b7c-f1a7-4770-adb6-31ced13d64d2@app.fastmail.com> (raw)
In-Reply-To: <20230308100012.2539189-1-u.kleine-koenig@pengutronix.de>

On Wed, Mar 8, 2023, at 11:00, Uwe Kleine-König wrote:
> Hello,
>
> this patch series adapts the platform drivers below arch/arm to use the
> .remove_new() callback. Compared to the traditional .remove() callback
> .remove_new() returns no value. This is a good thing because the driver core
> doesn't (and cannot) cope for errors during remove. The only effect of a
> non-zero return value in .remove() is that the driver core emits a warning. The
> device is removed anyhow and an early return from .remove() usually yields a
> resource leak.
>
> By changing the remove callback to return void driver authors cannot
> reasonably assume any more that there is some kind of cleanup later.
>
> All drivers in arch/arm returned zero unconditionally in their remove callback,
> so they could all be converted trivially to .remove_new().
>
> Note that this series depends on commit 5c5a7680e67b ("platform: Provide
> a remove callback that returns no value") which is included in v6.3-rc1.

Looks good to me,

Reviewed-by: Arnd Bergmann <arnd@arndb.de>

> I'm unsure who will pick up this series. Will it go as a whole via arm-soc? Or
> will the individual maintainers pick it up?

I can take it through the soc tree, please send it to
soc@kernel.org once you are done getting Acks.

Since all eight patches in the series have the exact same
changelog text and are all trivial, I'd prefer them to be
folded into a single patch if that works for you.

      Arnd

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2023-03-08 15:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-08 10:00 [PATCH 0/8] ARM: Convert to platform remove callback returning void Uwe Kleine-König
2023-03-08 10:00 ` [PATCH 1/8] ARM: locomo: " Uwe Kleine-König
2023-03-08 10:00 ` [PATCH 2/8] ARM: sa1111: " Uwe Kleine-König
2023-03-08 10:00 ` [PATCH 3/8] ARM: scoop: " Uwe Kleine-König
2023-03-08 10:00 ` [PATCH 4/8] ARM: imx: mmdc: " Uwe Kleine-König
2023-03-14  6:52   ` Shawn Guo
2023-03-08 10:00 ` [PATCH 5/8] ARM: omap1: omap-dma: " Uwe Kleine-König
2023-03-08 10:00 ` [PATCH 6/8] ARM: pxa: sharpsl_pm: " Uwe Kleine-König
2023-03-08 10:00 ` [PATCH 7/8] ARM: sa1100: jornada720_ssp: " Uwe Kleine-König
2023-03-08 10:00 ` [PATCH 8/8] ARM: sa1100: neponset: " Uwe Kleine-König
2023-03-08 15:06 ` Arnd Bergmann [this message]
2023-03-08 16:01   ` [PATCH 0/8] ARM: " Uwe Kleine-König

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=adaf8b7c-f1a7-4770-adb6-31ced13d64d2@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=aaro.koskinen@iki.fi \
    --cc=broonie@kernel.org \
    --cc=daniel@zonque.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=festevam@gmail.com \
    --cc=haojian.zhuang@gmail.com \
    --cc=jmkrzyszt@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=robert.jarzmik@free.fr \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=tony@atomide.com \
    --cc=u.kleine-koenig@pengutronix.de \
    --cc=ulf.hansson@linaro.org \
    --cc=viresh.kumar@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).