All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: "Wolfram Sang" <wsa@kernel.org>,
	"Johannes Holland" <johannes.holland@infineon.com>,
	"Amir Mizinski" <amirmizi6@gmail.com>,
	"Alexander Steffen" <Alexander.Steffen@infineon.com>,
	"Jarkko Sakkinen" <jarkko@kernel.org>,
	"Krzysztof Hałasa" <khalasa@piap.pl>,
	"Sakari Ailus" <sakari.ailus@linux.intel.com>,
	"Mauro Carvalho Chehab" <mchehab@kernel.org>
Cc: linux-integrity@vger.kernel.org, linux-i2c@vger.kernel.org,
	kernel@pengutronix.de
Subject: Re: [PATCH 0/6] i2c: Make remove callback return void
Date: Sat, 16 Jul 2022 17:15:27 +0200	[thread overview]
Message-ID: <20220716151527.u5vh4lz6ubpqq2tv@pengutronix.de> (raw)
In-Reply-To: <20220704083947.55ioswcze7r36g44@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 4656 bytes --]

Hello,

On Mon, Jul 04, 2022 at 10:39:47AM +0200, Uwe Kleine-König wrote:
> On Tue, Jun 28, 2022 at 04:03:06PM +0200, Uwe Kleine-König wrote:
> > as announced in
> > https://lore.kernel.org/linux-i2c/20220609091018.q52fhowlsdbdkct5@pengutronix.de
> > I intend to change the remove prototype for i2c drivers to remove void.
> > 
> > As this touches quite some drivers, the plan is to submit this change
> > for inclusion after the next merge window and get it quickly into next
> > that other subsystems have enough time to adapt.
> > 
> > Still to give the opportunity to comment I send the patch set out based
> > on v5.19-rc4. There are still a few patches in next that are required,
> > namely:
> > 
> > 	d04d46dd82ad iio:magnetometer:mbc150: Make bmc150_magn_remove() return void
> > 	7576bc05b360 iio:light:vcnl4035: Improve error reporting for problems during .remove()
> > 	ab91da2f2574 iio:light:vcnl4000: Improve error reporting for problems during .remove()
> > 	5049646718d7 iio:light:us5182d: Improve error reporting for problems during .remove()
> > 	be9f6004be88 iio:light:pa12203001: Improve error reporting for problems during .remove()
> > 	730cd2f54eba iio:chemical:ccs811: Improve error reporting for problems during .remove()
> > 	a76209246d9f iio:chemical:atlas: Improve error reporting for problems during .remove()
> > 	8f760ce7affd iio:adc:ti-ads1015: Improve error reporting for problems during .remove()
> > 	ffa952e95d8c iio:adc:ina2xx: Improve error reporting for problems during .remove()
> > 	48d1ae774099 iio: health: afe4404: Remove duplicated error reporting in .remove()
> > 	8dc0a72795e4 iio:light:tsl2583: Remove duplicated error reporting in .remove()
> > 	58a6df5580bb iio:light:stk3310: Remove duplicated error reporting in .remove()
> > 	44ceb791182a iio:light:opt3001: Remove duplicated error reporting in .remove()
> > 	f0e34d262567 iio:light:jsa1212: Remove duplicated error reporting in .remove()
> > 	8d3d6baa4990 iio:light:isl29028: Remove duplicated error reporting in .remove()
> > 	5004e24a466c iio:light:bh1780: Remove duplicated error reporting in .remove()
> > 	1db6926d611d iio:accel:stk8ba50: Remove duplicated error reporting in .remove()
> > 	1aec857d50ce iio:accel:stk8312: Remove duplicated error reporting in .remove()
> > 	aae59bdf2585 iio:accel:mc3230: Remove duplicated error reporting in .remove()
> > 	7df7563b16aa crypto: atmel-ecc - Remove duplicated error reporting in .remove()
> > 	99ad11e06be8 i2c: dummy: Drop no-op remove function
> > 	84965cc60e64 ASoC: cs35l45: Make cs35l45_remove() return void
> > 	fb68cb963bb7 ASoC: da732x: Drop no-op remove function
> > 	3cce931a5e44 ASoC: lm49453: Drop no-op remove function
> > 	8a291eebeb63 ASoC: da7219: Drop no-op remove function
> > 	60391d788a22 ASoC: ak4642: Drop no-op remove function
> > 	51bd0abd873d extcon: fsa9480: Drop no-op remove function
> > 
> > I hope and assume they will all be included in v5.20-rc1. There are 5
> > more patches required that didn't made it into next yet (i.e. patches #1
> > - #5 of this series).
> > 
> > There are also two drivers in next that need adaption:
> > 
> > 	drivers/gpu/drm/bridge/ti-dlpc3433.c
> > 	drivers/tty/serial/max310x.c
> 
> There is now a third driver in next that is affected:
> drivers/char/tpm/tpm_tis_i2c.c that was added with commit
> 88f3b0f519c068ad29c92e965239a7900a2deea3 to next.
> 
> A tree containing patched #1 to #5 merges just fine with next/master.
> When merging patch 6 into the result the merge resolution looks as
> follows:

Now there is a forth driver in next that needs adaption:
drivers/media/i2c/ar0521.c adding 

diff --git a/drivers/media/i2c/ar0521.c b/drivers/media/i2c/ar0521.c
index c7bdfc69b9be..c6ab531532be 100644
--- a/drivers/media/i2c/ar0521.c
+++ b/drivers/media/i2c/ar0521.c
@@ -1018,7 +1018,7 @@ static int ar0521_probe(struct i2c_client *client)
 	return ret;
 }
 
-static int ar0521_remove(struct i2c_client *client)
+static void ar0521_remove(struct i2c_client *client)
 {
 	struct v4l2_subdev *sd = i2c_get_clientdata(client);
 	struct ar0521_dev *sensor = to_ar0521_dev(sd);
@@ -1031,7 +1031,6 @@ static int ar0521_remove(struct i2c_client *client)
 		ar0521_power_off(&client->dev);
 	pm_runtime_set_suspended(&client->dev);
 	mutex_destroy(&sensor->lock);
-	return 0;
 }
 
 static const struct dev_pm_ops ar0521_pm_ops = {

to the patch needed on top of v5.20-rc1.

Best regards
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 --]

  reply	other threads:[~2022-07-16 15:15 UTC|newest]

Thread overview: 153+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-28 14:03 [PATCH 0/6] i2c: Make remove callback return void Uwe Kleine-König
2022-06-28 14:03 ` Uwe Kleine-König
2022-06-28 14:03 ` Uwe Kleine-König
2022-06-28 14:03 ` Uwe Kleine-König
2022-06-28 14:03 ` [PATCH 1/6] drm/i2c/sil164: Drop no-op remove function Uwe Kleine-König
2022-06-28 14:03   ` Uwe Kleine-König
2022-06-28 14:03 ` [PATCH 2/6] leds: lm3697: Remove duplicated error reporting in .remove() Uwe Kleine-König
2022-06-28 14:03 ` [PATCH 3/6] leds: lm3601x: Don't use mutex after it was destroyed Uwe Kleine-König
2022-06-28 14:03 ` [PATCH 4/6] leds: lm3601x: Improve error reporting for problems during .remove() Uwe Kleine-König
2022-06-28 14:03 ` [PATCH 5/6] gpio: pca953x: Make platform teardown callback return void Uwe Kleine-König
2022-06-28 14:03   ` Uwe Kleine-König
2022-06-28 19:09   ` Andy Shevchenko
2022-06-28 19:09     ` Andy Shevchenko
2022-06-28 20:15     ` Uwe Kleine-König
2022-06-28 20:15       ` Uwe Kleine-König
2022-06-28 14:03 ` [PATCH 6/6] i2c: Make remove " Uwe Kleine-König
2022-06-28 14:03   ` Uwe Kleine-König
2022-06-28 14:03   ` Uwe Kleine-König
2022-06-28 14:03   ` Uwe Kleine-König
2022-06-29  6:56   ` Peter Senna Tschudin
2022-06-29  6:56     ` Peter Senna Tschudin
2022-06-29  6:56     ` Peter Senna Tschudin
2022-06-29  6:56     ` Peter Senna Tschudin
2022-06-29  7:03   ` Jeremy Kerr
2022-06-29  7:03     ` Jeremy Kerr
2022-06-29  7:03     ` Jeremy Kerr
2022-06-29  7:03     ` Jeremy Kerr
2022-06-29  7:23     ` Uwe Kleine-König
2022-06-29  7:23       ` Uwe Kleine-König
2022-06-29  7:23       ` Uwe Kleine-König
2022-06-29  7:23       ` Uwe Kleine-König
2022-06-29  7:23       ` Uwe Kleine-König
2022-06-29  7:37       ` Javier Martinez Canillas
2022-06-29  7:37         ` Javier Martinez Canillas
2022-06-29  7:37         ` Javier Martinez Canillas
2022-06-29  7:37         ` Javier Martinez Canillas
2022-06-29  7:37         ` Javier Martinez Canillas
2022-06-29  7:55       ` Christophe Leroy
2022-06-29  7:55         ` Christophe Leroy
2022-06-29  7:55         ` Christophe Leroy
2022-06-29  7:55         ` Christophe Leroy
2022-06-29  7:55         ` Christophe Leroy
2022-06-29  8:09         ` Javier Martinez Canillas
2022-06-29  8:09           ` Javier Martinez Canillas
2022-06-29  8:09           ` Javier Martinez Canillas
2022-06-29  8:09           ` Javier Martinez Canillas
2022-06-29  8:09           ` Javier Martinez Canillas
2022-06-29  7:21   ` Benjamin Mugnier
2022-06-29  7:21     ` Benjamin Mugnier
2022-06-29  7:21     ` Benjamin Mugnier
2022-06-29  7:21     ` Benjamin Mugnier
2022-06-29  7:24   ` Crt Mori
2022-06-29  7:24     ` Crt Mori
2022-06-29  7:24     ` Crt Mori
2022-06-29  7:24     ` Crt Mori
2022-06-29  7:43     ` Uwe Kleine-König
2022-06-29  7:43       ` Uwe Kleine-König
2022-06-29  7:43       ` Uwe Kleine-König
2022-06-29  7:43       ` Uwe Kleine-König
2022-06-29  7:27   ` Benjamin Mugnier
2022-06-29  7:27     ` Benjamin Mugnier
2022-06-29  7:27     ` Benjamin Mugnier
2022-06-29  7:27     ` Benjamin Mugnier
2022-06-29  7:40   ` Heikki Krogerus
2022-06-29  7:40     ` Heikki Krogerus
2022-06-29  7:40     ` Heikki Krogerus
2022-06-29  9:05   ` Greg Kroah-Hartman
2022-06-29  9:05     ` Greg Kroah-Hartman
2022-06-29  9:05     ` Greg Kroah-Hartman
2022-06-29  9:05     ` Greg Kroah-Hartman
2022-06-29  9:20   ` Marek Behún
2022-06-29  9:20     ` Marek Behún
2022-06-29  9:20     ` Marek Behún
2022-06-29  9:20     ` Marek Behún
2022-06-29 10:40   ` Andy Shevchenko
2022-06-29 10:40     ` Andy Shevchenko
2022-06-29 10:40     ` Andy Shevchenko
2022-06-29 10:40     ` Andy Shevchenko
2022-06-29 10:53   ` Petr Machata
2022-06-29 13:11   ` Andrey Ryabinin
2022-06-29 13:11     ` Andrey Ryabinin
2022-06-29 13:11     ` Andrey Ryabinin
2022-06-29 13:11     ` Andrey Ryabinin
2022-06-29 13:35     ` Uwe Kleine-König
2022-06-29 13:35       ` Uwe Kleine-König
2022-06-29 13:35       ` Uwe Kleine-König
2022-06-29 13:35       ` Uwe Kleine-König
2022-06-29 13:35       ` Uwe Kleine-König
2022-06-29 14:25   ` Maximilian Luz
2022-06-29 14:25     ` Maximilian Luz
2022-06-29 14:25     ` Maximilian Luz
2022-06-29 14:25     ` Maximilian Luz
2022-06-29 14:31   ` srinivas pandruvada
2022-06-29 14:31     ` srinivas pandruvada
2022-06-29 14:31     ` srinivas pandruvada
2022-06-29 14:31     ` srinivas pandruvada
2022-06-29 14:41   ` Hans Verkuil
2022-06-29 14:41     ` Hans Verkuil
2022-06-29 14:41     ` Hans Verkuil
2022-06-29 14:41     ` Hans Verkuil
2022-06-29 14:50   ` Miguel Ojeda
2022-06-29 14:50     ` Miguel Ojeda
2022-06-29 14:50     ` Miguel Ojeda
2022-06-29 14:50     ` Miguel Ojeda
2022-06-29 19:24   ` Chanwoo Choi
2022-06-29 21:20   ` Luca Ceresoli
2022-06-29 21:20     ` Luca Ceresoli
2022-06-29 21:20     ` Luca Ceresoli
2022-06-29 21:20     ` Luca Ceresoli
2022-07-01 17:00   ` Jonathan Cameron
2022-07-01 17:00     ` Jonathan Cameron
2022-07-01 17:00     ` Jonathan Cameron
2022-07-01 17:00     ` Jonathan Cameron
2022-07-01 17:00     ` Jonathan Cameron
2022-07-01 18:18   ` Peter Rosin
2022-07-01 18:18     ` Peter Rosin
2022-07-01 18:18     ` Peter Rosin
2022-07-01 18:18     ` Peter Rosin
2022-07-01 18:18     ` Peter Rosin
2022-07-05 10:08   ` Jean Delvare
2022-07-05 10:08     ` Jean Delvare
2022-07-05 10:08     ` Jean Delvare
2022-07-05 10:08     ` Jean Delvare
2022-07-05 10:08     ` Jean Delvare
2022-07-05 10:36     ` Uwe Kleine-König
2022-07-05 10:36       ` Uwe Kleine-König
2022-07-05 10:36       ` Uwe Kleine-König
2022-07-05 10:36       ` Uwe Kleine-König
2022-07-05 10:36       ` Uwe Kleine-König
2022-07-05 20:11   ` Corey Minyard
2022-07-05 20:11     ` Corey Minyard
2022-07-05 20:11     ` Corey Minyard
2022-07-05 20:11     ` Corey Minyard
2022-07-06  9:13   ` Vladimir Oltean
2022-07-06  9:13     ` Vladimir Oltean
2022-07-06  9:13     ` Vladimir Oltean
2022-07-06  9:13     ` Vladimir Oltean
2022-07-06  9:13     ` Vladimir Oltean
2022-07-06  9:31     ` Uwe Kleine-König
2022-07-06  9:31       ` Uwe Kleine-König
2022-07-06  9:31       ` Uwe Kleine-König
2022-07-06  9:31       ` Uwe Kleine-König
2022-07-06  9:31       ` Uwe Kleine-König
2022-07-09  4:28   ` Dmitry Torokhov
2022-07-17 12:35   ` Pavel Machek
2022-07-17 12:35     ` Pavel Machek
2022-07-17 12:35     ` Pavel Machek
2022-07-17 12:35     ` Pavel Machek
2022-07-17 12:35     ` Pavel Machek
2022-07-04  8:39 ` [PATCH 0/6] " Uwe Kleine-König
2022-07-16 15:15   ` Uwe Kleine-König [this message]
2022-07-18  4:18     ` Krzysztof Hałasa
2022-08-11 12:40     ` 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=20220716151527.u5vh4lz6ubpqq2tv@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=Alexander.Steffen@infineon.com \
    --cc=amirmizi6@gmail.com \
    --cc=jarkko@kernel.org \
    --cc=johannes.holland@infineon.com \
    --cc=kernel@pengutronix.de \
    --cc=khalasa@piap.pl \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=sakari.ailus@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.