From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>,
"Mark Brown" <broonie@kernel.org>, "Takashi Iwai" <tiwai@suse.de>,
"Uwe Kleine-König" <uwe@kleine-koenig.org>,
"David Gow" <davidgow@google.com>,
linux-kernel@vger.kernel.org, kernel@pengutronix.de,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Nishanth Menon" <nm@ti.com>, "Jeremy Kerr" <jk@ozlabs.org>,
"Rodolfo Giometti" <giometti@enneenne.com>,
"Thierry Reding" <treding@nvidia.com>,
"Matt Coster" <matt.coster@imgtec.com>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Dave Jiang" <dave.jiang@intel.com>,
"Dan Williams" <dan.j.williams@intel.com>,
"Vishal Verma" <vishal.l.verma@intel.com>,
"Bjorn Andersson" <andersson@kernel.org>
Subject: Re: [PATCH] platform: Make platform_driver::remove() return void
Date: Tue, 4 Jun 2024 18:13:54 +0200 [thread overview]
Message-ID: <2024060432-relieving-yonder-85ae@gregkh> (raw)
In-Reply-To: <20240527083416.1177106-2-u.kleine-koenig@pengutronix.de>
On Mon, May 27, 2024 at 10:34:15AM +0200, Uwe Kleine-König wrote:
> struct platform_driver::remove returning an integer made driver authors
> expect that returning an error code was proper error handling. However
> the driver core ignores the error and continues to remove the device
> because there is nothing the core could do anyhow and reentering the
> remove callback again is only calling for trouble.
>
> To prevent such wrong assumptions, change the return type of the remove
> callback to void. This was prepared by introducing an alternative remove
> callback returning void and converting all drivers to that. So .remove()
> can be changed without further changes in drivers.
>
> This corresponds to step b) of the plan outlined in commit
> 5c5a7680e67b ("platform: Provide a remove callback that returns no value").
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> Hello Greg,
>
> there are only very little platform drivers left in v6.10-rc1 that need
> to be changed to .remove_new() before this patch can be applied. They
> were all sent out to the respective maintainers, most of them suggested
> to apply the patches together with this one.
>
> You can fetch this patch together with all necessary commits from:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git platform-remove-void
>
> If you have no concerns, I can also provide you a signed tag for
> pulling. I think that's easier than indiviually applying them, but I can
> also send out the complete series if you prefer.
A signed tag is good, I can just pull from that, thanks!
greg k-h
next prev parent reply other threads:[~2024-06-04 16:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-27 8:34 [PATCH] platform: Make platform_driver::remove() return void Uwe Kleine-König
2024-06-04 16:13 ` Greg Kroah-Hartman [this message]
2024-06-05 10:33 ` [GIT PULL] " Uwe Kleine-König
2024-06-07 19:07 ` Greg Kroah-Hartman
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=2024060432-relieving-yonder-85ae@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=andersson@kernel.org \
--cc=broonie@kernel.org \
--cc=dan.j.williams@intel.com \
--cc=dave.jiang@intel.com \
--cc=davidgow@google.com \
--cc=giometti@enneenne.com \
--cc=jk@ozlabs.org \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.coster@imgtec.com \
--cc=nm@ti.com \
--cc=p.zabel@pengutronix.de \
--cc=rafael@kernel.org \
--cc=tiwai@suse.de \
--cc=treding@nvidia.com \
--cc=tzimmermann@suse.de \
--cc=u.kleine-koenig@pengutronix.de \
--cc=uwe@kleine-koenig.org \
--cc=vishal.l.verma@intel.com \
/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