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

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

qcom: pil: Setup regulators and clocks only if no-auth flag is not set



The "qcom,pil-no-auth" property enables subsystem drivers to
authenticate and bring the corresponding subsystem out of reset
without having to depend on the subsys-pil-tz driver.
Setup the regulators and clocks for the subsys-pil-tz driver only
if this property does not exist.

Change-Id: Ibbcef3dfda8fc73578374805efe98ea5d3584128
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 707fd824
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -861,10 +861,6 @@ static int pil_tz_driver_probe(struct platform_device *pdev)
		return -ENOMEM;
	platform_set_drvdata(pdev, d);

	rc = piltz_resc_init(pdev, d);
	if (rc)
		return -ENOENT;

	if (of_property_read_bool(pdev->dev.of_node, "qcom,pil-no-auth"))
		d->subsys_desc.no_auth = true;

@@ -897,6 +893,10 @@ static int pil_tz_driver_probe(struct platform_device *pdev)
		d->desc.proxy_timeout = proxy_timeout;

	if (!d->subsys_desc.no_auth) {
		rc = piltz_resc_init(pdev, d);
		if (rc)
			return -ENOENT;

		rc = of_property_read_u32(pdev->dev.of_node, "qcom,pas-id",
								&d->pas_id);
		if (rc) {