public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] tee: optee: don't fail probe because of optee-rng
@ 2022-12-07 15:29 Etienne Carriere
  2022-12-07 15:30 ` [PATCH 2/2] tee: optee: discover services dependent on tee-supplicant Etienne Carriere
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Etienne Carriere @ 2022-12-07 15:29 UTC (permalink / raw)
  To: u-boot; +Cc: Jens Wiklander, Patrick Delaunay, Etienne Carriere

Fixes optee-rng driver bind sequence in optee driver to print a warning
message but not report an error status when a optee-rng service driver
fails to be bound as the optee driver itself is still fully functional.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
---
 drivers/tee/optee/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tee/optee/core.c b/drivers/tee/optee/core.c
index 9240277579..604fd1414f 100644
--- a/drivers/tee/optee/core.c
+++ b/drivers/tee/optee/core.c
@@ -834,7 +834,7 @@ static int optee_probe(struct udevice *dev)
 		 */
 		ret = device_bind_driver(dev, "optee-rng", "optee-rng", NULL);
 		if (ret)
-			return ret;
+			dev_warn(dev, "ftpm_tee failed to bind: %d\n", ret);
 	}
 
 	return 0;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-01-03 17:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-07 15:29 [PATCH 1/2] tee: optee: don't fail probe because of optee-rng Etienne Carriere
2022-12-07 15:30 ` [PATCH 2/2] tee: optee: discover services dependent on tee-supplicant Etienne Carriere
2022-12-22  9:31   ` Ilias Apalodimas
2022-12-22 10:56   ` Jens Wiklander
2023-01-03 17:03   ` Patrick DELAUNAY
2022-12-22  9:30 ` [PATCH 1/2] tee: optee: don't fail probe because of optee-rng Ilias Apalodimas
2022-12-22 10:57 ` Jens Wiklander
2023-01-03 16:53 ` Patrick DELAUNAY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox