From: Hans de Goede <hdegoede@redhat.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
"Lee, Chun-Yi" <jlee@suse.com>,
"Mark Gross" <markgross@kernel.org>,
"Andrea Ho" <Andrea.Ho@advantech.com.tw>,
"Naveen Krishna Chatradhi" <naveenkrishna.chatradhi@amd.com>,
"Shyam Sundar S K" <Shyam-sundar.S-k@amd.com>,
"Santosh Kumar Yadav" <santoshkumar.yadav@barco.com>,
"Peter Korsgaard" <peter.korsgaard@barco.com>,
"Cezary Jackiewicz" <cezary.jackiewicz@gmail.com>,
"Stuart Hayes" <stuart.w.hayes@gmail.com>,
"Pali Rohár" <pali@kernel.org>,
"Eric Piel" <eric.piel@tremplin-utc.net>,
"Barnabás Pőcze" <pobrn@protonmail.com>,
"Jorge Lopez" <jorge.lopez2@hp.com>,
"Ike Panhc" <ike.pan@canonical.com>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
"Wolfram Sang" <wsa+renesas@sang-engineering.com>,
"Heikki Krogerus" <heikki.krogerus@linux.intel.com>,
"Maximilian Luz" <luzmaximilian@gmail.com>,
"Alex Hung" <alexhung@gmail.com>,
"Sebastian Andrzej Siewior" <bigeasy@linutronix.de>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Shravan Sudhakar" <s.shravan@intel.com>,
"Intel Corporation" <linuxwwan@intel.com>,
"Daniel Scally" <djrscally@gmail.com>,
"Rajneesh Bhardwaj" <irenic.rajneesh@gmail.com>,
"David E. Box" <david.e.box@linux.intel.com>,
"AceLan Kao" <acelan.kao@canonical.com>
Cc: kernel@pengutronix.de,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
Carlos Bilbao <carlos.bilbao@amd.com>
Subject: Re: [PATCH 00/29] platform/x86: Convert to platform remove callback returning void
Date: Tue, 7 Mar 2023 12:23:08 +0100 [thread overview]
Message-ID: <a4fde380-2fd0-3bfe-3740-ddf8511dc986@redhat.com> (raw)
In-Reply-To: <20230302144732.1903781-1-u.kleine-koenig@pengutronix.de>
Hi Uwe,
On 3/2/23 15:47, Uwe Kleine-König wrote:
> Hello,
>
> this patch series adapts the platform drivers below drivers/platform/x86
> 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 touched here 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") that is already in Linus' tree
> but not yet included in a tagged version.
Thank you for your patch series, I've applied this series to my
review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans
Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.
Regards,
Hans
> Uwe Kleine-König (29):
> platform/x86: acer-wmi: Convert to platform remove callback returning void
> platform/x86: adv_swbutton: Convert to platform remove callback returning void
> platform/x86: amd: hsmp: Convert to platform remove callback returning void
> platform/x86: amd: pmc: Convert to platform remove callback returning void
> platform/x86: amd: pmf: core: Convert to platform remove callback returning void
> platform/x86: amilo-rfkill: Convert to platform remove callback returning void
> platform/x86: barco-p50-gpio: Convert to platform remove callback returning void
> platform/x86: compal-laptop: Convert to platform remove callback returning void
> platform/x86: dell: dcdbas: Convert to platform remove callback returning void
> platform/x86: dell: dell-smo8800: Convert to platform remove callback returning void
> platform/x86: hp: hp_accel: Convert to platform remove callback returning void
> platform/x86: hp: tc1100-wmi: Convert to platform remove callback returning void
> platform/x86: huawei-wmi: Convert to platform remove callback returning void
> platform/x86: ideapad-laptop: Convert to platform remove callback returning void
> platform/x86: intel: bxtwc_tmu: Convert to platform remove callback returning void
> platform/x86: intel: chtdc_ti_pwrbtn: Convert to platform remove callback returning void
> platform/x86: intel: chtwc_int33fe: Convert to platform remove callback returning void
> platform/x86: intel: hid: Convert to platform remove callback returning void
> platform/x86: intel: int0002_vgpio: Convert to platform remove callback returning void
> platform/x86: intel: int1092: intel_sar: Convert to platform remove callback returning void
> platform/x86: intel: int3472: discrete: Convert to platform remove callback returning void
> platform/x86: intel: mrfld_pwrbtn: Convert to platform remove callback returning void
> platform/x86: intel: pmc: core: Convert to platform remove callback returning void
> platform/x86: intel: telemetry: pltdrv: Convert to platform remove callback returning void
> platform/x86: intel: vbtn: Convert to platform remove callback returning void
> platform/x86: samsung-q10: Convert to platform remove callback returning void
> platform/x86: serial-multi-instantiate: Convert to platform remove callback returning void
> platform/x86: wmi: Convert to platform remove callback returning void
> platform/x86: xo1-rfkill: Convert to platform remove callback returning void
>
> drivers/platform/x86/acer-wmi.c | 5 ++---
> drivers/platform/x86/adv_swbutton.c | 6 ++----
> drivers/platform/x86/amd/hsmp.c | 6 ++----
> drivers/platform/x86/amd/pmc.c | 5 ++---
> drivers/platform/x86/amd/pmf/core.c | 5 ++---
> drivers/platform/x86/amilo-rfkill.c | 5 ++---
> drivers/platform/x86/barco-p50-gpio.c | 6 ++----
> drivers/platform/x86/compal-laptop.c | 8 +++-----
> drivers/platform/x86/dell/dcdbas.c | 6 ++----
> drivers/platform/x86/dell/dell-smo8800.c | 5 ++---
> drivers/platform/x86/hp/hp_accel.c | 5 ++---
> drivers/platform/x86/hp/tc1100-wmi.c | 6 ++----
> drivers/platform/x86/huawei-wmi.c | 6 ++----
> drivers/platform/x86/ideapad-laptop.c | 6 ++----
> drivers/platform/x86/intel/bxtwc_tmu.c | 5 ++---
> drivers/platform/x86/intel/chtdc_ti_pwrbtn.c | 5 ++---
> drivers/platform/x86/intel/chtwc_int33fe.c | 6 ++----
> drivers/platform/x86/intel/hid.c | 10 ++--------
> drivers/platform/x86/intel/int0002_vgpio.c | 5 ++---
> drivers/platform/x86/intel/int1092/intel_sar.c | 5 ++---
> drivers/platform/x86/intel/int3472/discrete.c | 6 ++----
> drivers/platform/x86/intel/mrfld_pwrbtn.c | 5 ++---
> drivers/platform/x86/intel/pmc/core.c | 5 ++---
> drivers/platform/x86/intel/telemetry/pltdrv.c | 5 ++---
> drivers/platform/x86/intel/vbtn.c | 10 ++--------
> drivers/platform/x86/samsung-q10.c | 6 ++----
> drivers/platform/x86/serial-multi-instantiate.c | 6 ++----
> drivers/platform/x86/wmi.c | 6 ++----
> drivers/platform/x86/xo1-rfkill.c | 5 ++---
> 29 files changed, 59 insertions(+), 111 deletions(-)
>
> base-commit: ee3f96b164688dae21e2466a57f2e806b64e8a37
prev parent reply other threads:[~2023-03-07 11:24 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-02 14:47 Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 01/29] platform/x86: acer-wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 02/29] platform/x86: adv_swbutton: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 03/29] platform/x86: amd: hsmp: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 04/29] platform/x86: amd: pmc: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 05/29] platform/x86: amd: pmf: core: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 06/29] platform/x86: amilo-rfkill: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 07/29] platform/x86: barco-p50-gpio: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 08/29] platform/x86: compal-laptop: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 09/29] platform/x86: dell: dcdbas: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 10/29] platform/x86: dell: dell-smo8800: " Uwe Kleine-König
2023-03-02 17:19 ` Pali Rohár
2023-03-02 14:47 ` [PATCH 11/29] platform/x86: hp: hp_accel: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 12/29] platform/x86: hp: tc1100-wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 13/29] platform/x86: huawei-wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 14/29] platform/x86: ideapad-laptop: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 15/29] platform/x86: intel: bxtwc_tmu: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 16/29] platform/x86: intel: chtdc_ti_pwrbtn: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 17/29] platform/x86: intel: chtwc_int33fe: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 18/29] platform/x86: intel: hid: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 19/29] platform/x86: intel: int0002_vgpio: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 20/29] platform/x86: intel: int1092: intel_sar: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 21/29] platform/x86: intel: int3472: discrete: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 22/29] platform/x86: intel: mrfld_pwrbtn: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 23/29] platform/x86: intel: pmc: core: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 24/29] platform/x86: intel: telemetry: pltdrv: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 25/29] platform/x86: intel: vbtn: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 26/29] platform/x86: samsung-q10: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 27/29] platform/x86: serial-multi-instantiate: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 28/29] platform/x86: wmi: " Uwe Kleine-König
2023-03-02 14:47 ` [PATCH 29/29] platform/x86: xo1-rfkill: " Uwe Kleine-König
2023-03-07 11:23 ` Hans de Goede [this message]
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=a4fde380-2fd0-3bfe-3740-ddf8511dc986@redhat.com \
--to=hdegoede@redhat.com \
--cc=Andrea.Ho@advantech.com.tw \
--cc=Shyam-sundar.S-k@amd.com \
--cc=acelan.kao@canonical.com \
--cc=alexhung@gmail.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bigeasy@linutronix.de \
--cc=carlos.bilbao@amd.com \
--cc=cezary.jackiewicz@gmail.com \
--cc=david.e.box@linux.intel.com \
--cc=djrscally@gmail.com \
--cc=eric.piel@tremplin-utc.net \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=ike.pan@canonical.com \
--cc=irenic.rajneesh@gmail.com \
--cc=jlee@suse.com \
--cc=jorge.lopez2@hp.com \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxwwan@intel.com \
--cc=luzmaximilian@gmail.com \
--cc=markgross@kernel.org \
--cc=naveenkrishna.chatradhi@amd.com \
--cc=pali@kernel.org \
--cc=peter.korsgaard@barco.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=pobrn@protonmail.com \
--cc=s.shravan@intel.com \
--cc=santoshkumar.yadav@barco.com \
--cc=stuart.w.hayes@gmail.com \
--cc=tglx@linutronix.de \
--cc=u.kleine-koenig@pengutronix.de \
--cc=wsa+renesas@sang-engineering.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
all inboxes | Powered by JetHome®