From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 389F4C0015E for ; Wed, 19 Jul 2023 06:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8eWAlTjkqhqXqXpHoFGZzzMf3Yf5ULw1CUjVSLVJxh4=; b=2M6+zkxzBGr3hDhIvMQ2kSGVwO 6aPMDTqSNrtXs45bdHHrv23MzL+VgvAxWHSTm1reNSCRhUBoYKdbfk/DVkq96qu5sBwe/P3jHR3Sc HKbe5gvv4mq4kqMzcjCNI77JAChfwXYsB8osy0oO6zyVY9mTX+nju4Uwywo26nf89tzQXW9V0FBxG obQ02nwkJhI8ezqZsxB9JugFgRPAm7KNNAXQfw4Q7TlXrrHmOmkAHc5aJJU8hhY1eiD0JNX5t3w+G Cqvi5bWFWVaNtwfmdFhyOiW318eem8qYxiiQHVS0w82WfztxdXvlk9z/H9xVlBZjiuJg6uH32pEVR prcJKd8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qM0Fb-005W1s-1h; Wed, 19 Jul 2023 06:01:27 +0000 Received: from desiato.infradead.org ([90.155.92.199]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qM0FZ-005W0P-2e for linux-arm-kernel@bombadil.infradead.org; Wed, 19 Jul 2023 06:01:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=BR6KpnRfwI5/49H8Y9pzgUkfGeU8FAXVMLoT7gx6EYA=; b=gxIWEKI/syBPvJLaGCj3/1dLpl l7L/q6EOQoWbazzXmhI1FOCNdl9inS0wg54slX/T2HjFwperjKy1scmmmT67ME90Lo52/enJTJ9v/ Dh27e6i5mqUN0dPLX9KCzvw+X1NVx6ZIS632vBELORw7VTf8zY6GizgxRMy2HaL0rtFh386eUinVa WvXNKbeA7Vxp0mp6cb4MMZtCN8MdtH+J+bRyClTkPRJra2OmXvRDMUHfdKXOYgLLLZbk82W1egf3I 0CM3ovGxFbsUhGTgIpNg3gOY+HocQPWJ1Azhxhp8xeZhOSel335MoNGw0SCT+lgWQD/OOaO8sDnw7 +ezFr+Vg==; Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qLrPi-00C0Ey-2k for linux-arm-kernel@lists.infradead.org; Tue, 18 Jul 2023 20:35:21 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qLrPO-0008IY-At; Tue, 18 Jul 2023 22:34:58 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qLrPJ-000S0O-Mn; Tue, 18 Jul 2023 22:34:53 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qLrPI-005wAR-OG; Tue, 18 Jul 2023 22:34:52 +0200 Date: Tue, 18 Jul 2023 22:34:49 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Jarkko Sakkinen Subject: Re: [PATCH] tpm: Switch i2c drivers back to use .probe() Message-ID: <20230718203449.dsnrbzcdsoogbqp2@pengutronix.de> References: <20230525202424.630260-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230718_213519_332304_1102FF9A X-CRM114-Status: GOOD ( 26.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Heikki Krogerus , Peter Senna Tschudin , Claudiu Beznea , Jason Gunthorpe , Krzysztof Kozlowski , kernel@pengutronix.de, Peter Huewe , Dmitry Torokhov , linux-integrity@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: multipart/mixed; boundary="===============0456486487725122996==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============0456486487725122996== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qnxb4qgisxlixxr3" Content-Disposition: inline --qnxb4qgisxlixxr3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Fri, Jun 09, 2023 at 08:36:40PM +0300, Jarkko Sakkinen wrote: > On Thu May 25, 2023 at 11:24 PM EEST, Uwe Kleine-K=F6nig wrote: > > After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() > > call-back type"), all drivers being converted to .probe_new() and then > > 03c835f498b5 ("i2c: Switch .probe() to not take an id parameter") > > convert back to (the new) .probe() to be able to eventually drop > > .probe_new() from struct i2c_driver. > > > > Signed-off-by: Uwe Kleine-K=F6nig > > --- > > drivers/char/tpm/st33zp24/i2c.c | 2 +- > > drivers/char/tpm/tpm_i2c_atmel.c | 2 +- > > drivers/char/tpm/tpm_i2c_infineon.c | 2 +- > > drivers/char/tpm/tpm_i2c_nuvoton.c | 2 +- > > drivers/char/tpm/tpm_tis_i2c.c | 2 +- > > drivers/char/tpm/tpm_tis_i2c_cr50.c | 2 +- > > 6 files changed, 6 insertions(+), 6 deletions(-) > > > > diff --git a/drivers/char/tpm/st33zp24/i2c.c b/drivers/char/tpm/st33zp2= 4/i2c.c > > index 2d28f55ef490..661574bb0acf 100644 > > --- a/drivers/char/tpm/st33zp24/i2c.c > > +++ b/drivers/char/tpm/st33zp24/i2c.c > > @@ -160,7 +160,7 @@ static struct i2c_driver st33zp24_i2c_driver =3D { > > .of_match_table =3D of_match_ptr(of_st33zp24_i2c_match), > > .acpi_match_table =3D ACPI_PTR(st33zp24_i2c_acpi_match), > > }, > > - .probe_new =3D st33zp24_i2c_probe, > > + .probe =3D st33zp24_i2c_probe, > > .remove =3D st33zp24_i2c_remove, > > .id_table =3D st33zp24_i2c_id > > }; > > diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2= c_atmel.c > > index 8f77154e0550..301a95b3734f 100644 > > --- a/drivers/char/tpm/tpm_i2c_atmel.c > > +++ b/drivers/char/tpm/tpm_i2c_atmel.c > > @@ -203,7 +203,7 @@ static SIMPLE_DEV_PM_OPS(i2c_atmel_pm_ops, tpm_pm_s= uspend, tpm_pm_resume); > > =20 > > static struct i2c_driver i2c_atmel_driver =3D { > > .id_table =3D i2c_atmel_id, > > - .probe_new =3D i2c_atmel_probe, > > + .probe =3D i2c_atmel_probe, > > .remove =3D i2c_atmel_remove, > > .driver =3D { > > .name =3D I2C_DRIVER_NAME, > > diff --git a/drivers/char/tpm/tpm_i2c_infineon.c b/drivers/char/tpm/tpm= _i2c_infineon.c > > index 7cdaff52a96d..81d8a78dc655 100644 > > --- a/drivers/char/tpm/tpm_i2c_infineon.c > > +++ b/drivers/char/tpm/tpm_i2c_infineon.c > > @@ -716,7 +716,7 @@ static void tpm_tis_i2c_remove(struct i2c_client *c= lient) > > =20 > > static struct i2c_driver tpm_tis_i2c_driver =3D { > > .id_table =3D tpm_tis_i2c_table, > > - .probe_new =3D tpm_tis_i2c_probe, > > + .probe =3D tpm_tis_i2c_probe, > > .remove =3D tpm_tis_i2c_remove, > > .driver =3D { > > .name =3D "tpm_i2c_infineon", > > diff --git a/drivers/char/tpm/tpm_i2c_nuvoton.c b/drivers/char/tpm/tpm_= i2c_nuvoton.c > > index a026e98add50..d7be03c41098 100644 > > --- a/drivers/char/tpm/tpm_i2c_nuvoton.c > > +++ b/drivers/char/tpm/tpm_i2c_nuvoton.c > > @@ -650,7 +650,7 @@ static SIMPLE_DEV_PM_OPS(i2c_nuvoton_pm_ops, tpm_pm= _suspend, tpm_pm_resume); > > =20 > > static struct i2c_driver i2c_nuvoton_driver =3D { > > .id_table =3D i2c_nuvoton_id, > > - .probe_new =3D i2c_nuvoton_probe, > > + .probe =3D i2c_nuvoton_probe, > > .remove =3D i2c_nuvoton_remove, > > .driver =3D { > > .name =3D "tpm_i2c_nuvoton", > > diff --git a/drivers/char/tpm/tpm_tis_i2c.c b/drivers/char/tpm/tpm_tis_= i2c.c > > index c8c34adc14c0..11b4196b7136 100644 > > --- a/drivers/char/tpm/tpm_tis_i2c.c > > +++ b/drivers/char/tpm/tpm_tis_i2c.c > > @@ -379,7 +379,7 @@ static struct i2c_driver tpm_tis_i2c_driver =3D { > > .pm =3D &tpm_tis_pm, > > .of_match_table =3D of_match_ptr(of_tis_i2c_match), > > }, > > - .probe_new =3D tpm_tis_i2c_probe, > > + .probe =3D tpm_tis_i2c_probe, > > .remove =3D tpm_tis_i2c_remove, > > .id_table =3D tpm_tis_i2c_id, > > }; > > diff --git a/drivers/char/tpm/tpm_tis_i2c_cr50.c b/drivers/char/tpm/tpm= _tis_i2c_cr50.c > > index 376ae18a04eb..e70abd69e1ae 100644 > > --- a/drivers/char/tpm/tpm_tis_i2c_cr50.c > > +++ b/drivers/char/tpm/tpm_tis_i2c_cr50.c > > @@ -779,7 +779,7 @@ static void tpm_cr50_i2c_remove(struct i2c_client *= client) > > static SIMPLE_DEV_PM_OPS(cr50_i2c_pm, tpm_pm_suspend, tpm_pm_resume); > > =20 > > static struct i2c_driver cr50_i2c_driver =3D { > > - .probe_new =3D tpm_cr50_i2c_probe, > > + .probe =3D tpm_cr50_i2c_probe, > > .remove =3D tpm_cr50_i2c_remove, > > .driver =3D { > > .name =3D "cr50_i2c", > > --=20 > > 2.39.2 >=20 >=20 > Thanks, applied! This was was in next up to next-20230717, it's not included in next-20230718 any more. The branch pulled into next from=20 git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git#next changed from 0ec1b5bea32bce719ebdab253462f9c9cb0aca3e to 481c2d14627de8ecbb54dd125466e4b4a5069b47. This is a rebase to v6.5-rc2 dropping some more patches: $ git log --oneline 481c2d14627de8ecbb54dd125466e4b4a5069b47...0ec1b5bea32= bce719ebdab253462f9c9cb0aca3e --cherry-pick --right-only 5a29fb0d959a tpm: make all 'class' structures const 17222dfebab1 tpm: remove redundant variable len dfd6ecc2066c tpm_tis: Resend command to recover from data transfer errors 8458b36c647c tpm_tis: Use responseRetry to recover from data transfer erro= rs a5dd583aa98b tpm_tis: Move CRC check to generic send routine 126f3df1f03c tpm_tis: Explicitly check for error code dfba6d4ad558 tpm: Switch i2c drivers back to use .probe() bed72785706c tpm_tis-spi: Add hardware wait polling 2afb9c102761 integrity: Enforce digitalSignature usage in the ima and evm = keyrings 0d8f1c250285 KEYS: DigitalSignature link restriction 41e4e488742e KEYS: Replace all non-returning strlcpy with strscpy e2e51b64f0c8 security: keys: perform capable check only on privileged oper= ations These all apply just fine on top of next-20230718, so I wonder what made you drop them. Can you please reapply at least dfba6d4ad558? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --qnxb4qgisxlixxr3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmS292gACgkQj4D7WH0S /k40QAgAtK8ktJ6VtxT4jWnJXCK2uEJvbyNwG9WYNB1Qtwuf8HlptAGC6vFDWoL5 CNNXu6NXGxyNPIym6ibRQDfRJfgdMXW0fGDwfk6tNmEMDRr0goUn6QdhGWery2P3 IUAZOWWdRp4pwsdUmaw5XJgbQxZil6/CwvXv14OykZY9w+NhdG087uYcuKmjSXkR PS1NHEm5nRDkr7E34m6DCr4uF4RvNeGAgYZw3l9AGfRgZTHx72qOdM9Cp6f1Glrx OxBXYrdkYYPuMxY4/V287gCjkoFW9MsNG0Z0gcLHrz4zZCtKLQd73Is/hPJ4dC5h anmT/sCNXxnD27STCpXSX+8+rLFV2A== =0wMR -----END PGP SIGNATURE----- --qnxb4qgisxlixxr3-- --===============0456486487725122996== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============0456486487725122996==--