From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: Alexandre Torgue <alexandre.torgue@foss.st.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Guenter Roeck <linux@roeck-us.net>,
Jarkko Sakkinen <jarkko@kernel.org>,
Jean Delvare <jdelvare@suse.com>,
Jiri Slaby <jirislaby@kernel.org>,
Lee Jones <lee.jones@linaro.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Michael Hennerich <michael.hennerich@analog.com>,
Peter Huewe <peterhuewe@gmx.de>,
Thierry Reding <thierry.reding@gmail.com>,
Yasunari Takiguchi <Yasunari.Takiguchi@sony.com>
Cc: linux-hwmon@vger.kernel.org, linux-serial@vger.kernel.org,
"Rafael J. Wysocki" <rafael@kernel.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-spi@vger.kernel.org,
Wolfram Sang <wsa@kernel.org>,
"Jason Gunthorpe linux-integrity @ vger . kernel . org"
<jgg@ziepe.ca>, Mark Brown <broonie@kernel.org>,
linux-i2c@vger.kernel.org, kernel@pengutronix.de,
linux-input@vger.kernel.org, Sam Ravnborg <sam@ravnborg.org>,
linux-stm32@st-md-mailman.stormreply.com,
linux-media@vger.kernel.org
Subject: Re: [PATCH 00/13] Make some spi device drivers return zero in .remove()
Date: Mon, 11 Oct 2021 22:42:07 +0200 [thread overview]
Message-ID: <20211011204207.zfmofwf4d6ga45ao@pengutronix.de> (raw)
In-Reply-To: <20211011132754.2479853-1-u.kleine-koenig@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 2454 bytes --]
Hello,
On Mon, Oct 11, 2021 at 03:27:41PM +0200, Uwe Kleine-König wrote:
> this series is part of my new quest to make spi remove callbacks return
> void. Today they return an int, but the only result of returning a
> non-zero value is a warning message. So it's a bad idea to return an
> error code in the expectation that not freeing some resources is ok
> then. The same holds true for i2c and platform devices which benefit en
> passant for a few drivers.
>
> The patches in this series address some of the spi drivers that might
> return non-zero and adapt them accordingly to return zero instead. For
> most drivers it's just about not hiding the fact that they already
> return zero.
>
> Given that there are quite some more patches of this type to create
> before I can change the spi remove callback, I suggest the respecive
> subsystem maintainers pick up these patches. There are no
> interdependencies in this series.
>
> Uwe Kleine-König (13):
> drm/panel: s6e63m0: Make s6e63m0_remove() return void
> hwmon: adt7x10: Make adt7x10_remove() return void
> hwmon: max31722: Warn about failure to put device in stand-by in
> .remove()
> input: adxl34xx: Make adxl34x_remove() return void
> input: touchscreen: tsc200x: Make tsc200x_remove() return void
> media: cxd2880: Eliminate dead code
> mfd: mc13xxx: Make mc13xxx_common_exit() return void
> mfd: stmpe: Make stmpe_remove() return void
> mfd: tps65912: Make tps65912_device_exit() return void
> serial: max310x: Make max310x_remove() return void
> serial: sc16is7xx: Make sc16is7xx_remove() return void
> staging: fbtft: Make fbtft_remove_common() return void
> tpm: st33zp24: Make st33zp24_remove() return void
I thought I would be a good enough programmer to not need build tests.
Obviously I was wrong and introduced build problems with the following
patches:
input: touchscreen: tsc200x: Make tsc200x_remove() return void
mfd: mc13xxx: Make mc13xxx_common_exit() return void
serial: max310x: Make max310x_remove() return void
serial: sc16is7xx: Make sc16is7xx_remove() return void
Please don't apply these (unless you also fix the trivial problems in
them). I will prepare a v2 soon.
Best regards and sorry for the inconvenience,
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2021-10-11 20:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-11 13:27 [PATCH 00/13] Make some spi device drivers return zero in .remove() Uwe Kleine-König
2021-10-11 13:27 ` [PATCH 02/13] hwmon: adt7x10: Make adt7x10_remove() return void Uwe Kleine-König
2021-10-11 14:19 ` Guenter Roeck
2021-10-11 13:27 ` [PATCH 04/13] input: adxl34xx: Make adxl34x_remove() " Uwe Kleine-König
2021-10-11 13:27 ` [PATCH 05/13] input: touchscreen: tsc200x: Make tsc200x_remove() " Uwe Kleine-König
2021-10-11 13:27 ` [PATCH 07/13] mfd: mc13xxx: Make mc13xxx_common_exit() " Uwe Kleine-König
2021-10-11 13:27 ` [PATCH 08/13] mfd: stmpe: Make stmpe_remove() " Uwe Kleine-König
2021-10-11 13:27 ` [PATCH 09/13] mfd: tps65912: Make tps65912_device_exit() " Uwe Kleine-König
2021-10-11 13:27 ` [PATCH 13/13] tpm: st33zp24: Make st33zp24_remove() " Uwe Kleine-König
2021-10-12 16:47 ` Jarkko Sakkinen
2021-10-12 17:40 ` Uwe Kleine-König
2021-10-12 17:46 ` Jarkko Sakkinen
2021-10-11 20:42 ` Uwe Kleine-König [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=20211011204207.zfmofwf4d6ga45ao@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=Yasunari.Takiguchi@sony.com \
--cc=alexandre.torgue@foss.st.com \
--cc=broonie@kernel.org \
--cc=dmitry.torokhov@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=jarkko@kernel.org \
--cc=jdelvare@suse.com \
--cc=jgg@ziepe.ca \
--cc=jirislaby@kernel.org \
--cc=kernel@pengutronix.de \
--cc=lee.jones@linaro.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=linux@roeck-us.net \
--cc=mchehab@kernel.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=michael.hennerich@analog.com \
--cc=peterhuewe@gmx.de \
--cc=rafael@kernel.org \
--cc=sam@ravnborg.org \
--cc=thierry.reding@gmail.com \
--cc=wsa@kernel.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).