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

Commit d4ce94ce authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: glink_probe: Add support for spi transport



Add support to probe the glink spi transport for the wdsp processor.
The WDSP processor notifiers about SSR through a component manager
instead of the PIL SSR framework. If the SPI transport is required,
register the SPI transport immediately instead of waiting for an up
notification from the SSR framework.

Change-Id: I313b6acae305d43a0e328c78fde255243be76eab
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 3a63e37c
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -364,6 +364,15 @@ static void probe_subsystem(struct device *dev, struct device_node *np)
	} else if (!strcmp(transport, "spss")) {
		einfo->register_fn = glink_probe_spss_reg;
		einfo->unregister_fn = glink_probe_spss_unreg;
	} else if (!strcmp(transport, "spi")) {
		/* SPI SSR is self contained */
		einfo->glink = qcom_glink_spi_register(dev, np);
		if (IS_ERR_OR_NULL(einfo->glink)) {
			GLINK_ERR(dev, "%s failed\n", einfo->ssr_label);
			goto free_einfo;
		}
		list_add_tail(&einfo->list, &edge_infos);
		return;
	}

	einfo->nb.notifier_call = glink_probe_ssr_cb;