Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5d2d30e authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

esoc: Add support to allow SSR framework to read esoc dt node



For a subsystem to register with the SSR framework, a
subsys_register call is made by the driver pertaining
to the subsystem. The subsys descriptor parameter that
is passed with this call is expected to have it's device
of_node structure to be filled for the subsystem_restart
driver to access certain information about the subsystem.

Fill the of_node structure for esoc. This change is needed
for the subsystem_restart driver to read the ssctl instance
id property for esoc.

Change-Id: Ic8eef38390ac423210cbddff76fab51b09f331b6
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 31d2e09a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -168,6 +168,7 @@ int esoc_clink_register_ssr(struct esoc_clink *esoc_clink)
		return PTR_ERR(subsys_name);
	snprintf(subsys_name, len, "esoc%d", esoc_clink->id);
	esoc_clink->subsys.name = subsys_name;
	esoc_clink->dev.of_node = esoc_clink->np;
	esoc_clink->subsys.dev = &esoc_clink->dev;
	esoc_clink->subsys_dev = subsys_register(&esoc_clink->subsys);
	if (IS_ERR(esoc_clink->subsys_dev)) {