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

Commit a2889e37 authored by Skylar Chang's avatar Skylar Chang
Browse files

msm: gsi: enable wake irq



Allow GSI interrupt to wake up AP.
This change will prevent a data stall in case
AP is in power collapse and IPA has data available
to AP.

Change-Id: I6457d1e348cd8e7a9075396e02061843f0ac9abc
CRs-Fixed: 1012036
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 6beb213a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -643,6 +643,13 @@ int gsi_register_device(struct gsi_per_props *props, unsigned long *dev_hdl)
			GSIERR("failed to register isr for %u\n", props->irq);
			return -GSI_STATUS_ERROR;
		}

		res = enable_irq_wake(props->irq);
		if (res)
			GSIERR("failed to enable wake irq %u\n", props->irq);
		else
			GSIERR("GSI irq is wake enabled %u\n", props->irq);

	} else {
		GSIERR("do not support interrupt type %u\n", props->intr);
		return -GSI_STATUS_UNSUPPORTED_OP;