Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>,
	"Sumit Garg" <sumit.garg@oss.qualcomm.com>,
	"Jarkko Sakkinen" <jarkko@kernel.org>,
	"Jens Wiklander" <jens.wiklander@linaro.org>,
	"Sasha Levin" <sashal@kernel.org>
Subject: [PATCH 6.18.y 3/5] KEYS: trusted: Migrate to use tee specific driver registration function
Date: Fri,  4 Dec 2026 08:16:08 -0500	[thread overview]
Message-ID: <20261204131603.3126555-3-sashal@kernel.org> (raw)
In-Reply-To: <20261204131603.3126555-1-sashal@kernel.org>

From: Uwe Kleine-König <u.kleine-koenig@baylibre.com>

[ Upstream commit 7b7e532b58e89b3318242bfcb57f3f2b3b384855 ]

The tee subsystem recently got a set of dedicated functions to register
(and unregister) a tee driver. Make use of them. These care for setting the
driver's bus (so the explicit assignment can be dropped) and the driver
owner (which is an improvement this driver benefits from).

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Stable-dep-of: b8d381d5ed79 ("KEYS: trusted: TEE: Synchronize session lifetime")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 security/keys/trusted-keys/trusted_tee.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/security/keys/trusted-keys/trusted_tee.c b/security/keys/trusted-keys/trusted_tee.c
index aa3d477de6db5..3cea9a3779558 100644
--- a/security/keys/trusted-keys/trusted_tee.c
+++ b/security/keys/trusted-keys/trusted_tee.c
@@ -264,7 +264,6 @@ static struct tee_client_driver trusted_key_driver = {
 	.id_table	= trusted_key_id_table,
 	.driver		= {
 		.name		= DRIVER_NAME,
-		.bus		= &tee_bus_type,
 		.probe		= trusted_key_probe,
 		.remove		= trusted_key_remove,
 	},
@@ -272,12 +271,12 @@ static struct tee_client_driver trusted_key_driver = {
 
 static int trusted_tee_init(void)
 {
-	return driver_register(&trusted_key_driver.driver);
+	return tee_client_driver_register(&trusted_key_driver);
 }
 
 static void trusted_tee_exit(void)
 {
-	driver_unregister(&trusted_key_driver.driver);
+	tee_client_driver_unregister(&trusted_key_driver);
 }
 
 struct trusted_key_ops trusted_key_tee_ops = {
-- 
2.53.0


  parent reply	other threads:[~2026-12-04 13:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  9:37 FAILED: patch "[PATCH] KEYS: trusted: TEE: Synchronize session lifetime" failed to apply to 6.18-stable tree gregkh
2026-12-04 13:16 ` [PATCH 6.18.y 1/5] tee: Add some helpers to reduce boilerplate for tee client drivers Sasha Levin
2026-12-04 13:16   ` [PATCH 6.18.y 2/5] tee: Add probe, remove and shutdown bus callbacks to tee_client_driver Sasha Levin
2026-12-04 13:16   ` Sasha Levin [this message]
2026-12-04 13:16   ` [PATCH 6.18.y 4/5] KEYS: trusted: Make use of tee bus methods Sasha Levin
2026-12-04 13:16   ` [PATCH 6.18.y 5/5] KEYS: trusted: TEE: Synchronize session lifetime Sasha Levin

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=20261204131603.3126555-3-sashal@kernel.org \
    --to=sashal@kernel.org \
    --cc=jarkko@kernel.org \
    --cc=jens.wiklander@linaro.org \
    --cc=stable@vger.kernel.org \
    --cc=sumit.garg@oss.qualcomm.com \
    --cc=u.kleine-koenig@baylibre.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