linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] firmware: arm_scmi: Resolve dependency with TEE subsystem
@ 2022-11-11  9:53 Sumit Garg
  2022-11-11 14:38 ` Sudeep Holla
  0 siblings, 1 reply; 15+ messages in thread
From: Sumit Garg @ 2022-11-11  9:53 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: sudeep.holla, cristian.marussi, Ludvig.Parsson, jens.wiklander,
	etienne.carriere, vincent.guittot, linux-kernel, Sumit Garg

The OP-TEE SCMI transport channel is dependent on TEE subsystem to be
initialized first. But currently the Arm SCMI subsystem and TEE
subsystem are invoked on the same initcall level as subsystem_init().

It is observed that the SCMI subsystem initcall is invoked prior to TEE
subsystem initcall. This leads to unwanted error messages regarding TEE
bus is not present yet. Although, -EPROBE_DEFER tries to workaround that
problem.

Lets try to resolve inter subsystem dependency problem via shifting Arm
SCMI subsystem to subsystem_init_sync() initcall level.

Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
---
 drivers/firmware/arm_scmi/driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firmware/arm_scmi/driver.c b/drivers/firmware/arm_scmi/driver.c
index f818d00bb2c6..f43e52541da4 100644
--- a/drivers/firmware/arm_scmi/driver.c
+++ b/drivers/firmware/arm_scmi/driver.c
@@ -2667,7 +2667,7 @@ static int __init scmi_driver_init(void)
 
 	return platform_driver_register(&scmi_driver);
 }
-subsys_initcall(scmi_driver_init);
+subsys_initcall_sync(scmi_driver_init);
 
 static void __exit scmi_driver_exit(void)
 {
-- 
2.34.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2022-11-29 17:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-11  9:53 [PATCH] firmware: arm_scmi: Resolve dependency with TEE subsystem Sumit Garg
2022-11-11 14:38 ` Sudeep Holla
2022-11-11 15:00   ` Ludvig Pärsson
2022-11-11 15:13     ` Sudeep Holla
2022-11-14  6:31   ` Sumit Garg
2022-11-14 10:26     ` Sudeep Holla
2022-11-14 11:29       ` Etienne Carriere
2022-11-14 13:47         ` Ludvig Pärsson
2022-11-22 17:48           ` Cristian Marussi
2022-11-29 10:49             ` Ludvig Pärsson
2022-11-29 12:15               ` Cristian Marussi
2022-11-29 14:57                 ` Etienne Carriere
2022-11-29 17:30                   ` Cristian Marussi
2022-11-17  9:41         ` Sumit Garg
2022-11-17 11:19           ` Sudeep Holla

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).