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

Commit 4d1b4d58 authored by Shreyas K K's avatar Shreyas K K
Browse files

drivers: soc: sdx_ext_ipc: Fix devm_request_threaded_irq call



Run sdx_ext_ipc_wakeup_irq in isr context and not in thread
context.

Change-Id: Ida0c6653c20ea20077881b30552f68929fdf1241
Signed-off-by: default avatarShreyas K K <shrekk@codeaurora.org>
parent 32496ef3
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -347,7 +347,7 @@ static int sdx_ext_ipc_probe(struct platform_device *pdev)

	if (mdm->gpios[WAKEUP_IN] >= 0) {
		ret = devm_request_threaded_irq(mdm->dev, mdm->wakeup_irq,
				NULL, sdx_ext_ipc_wakeup_irq,
				sdx_ext_ipc_wakeup_irq, NULL,
				IRQF_TRIGGER_FALLING, "sdx_ext_ipc_wakeup",
				mdm);
		if (ret < 0) {
@@ -356,7 +356,6 @@ static int sdx_ext_ipc_probe(struct platform_device *pdev)
				__func__, mdm->wakeup_irq);
			goto irq_fail;
		}
		disable_irq(mdm->wakeup_irq);
	}

	if (mdm->gpios[WAKEUP_OUT] >= 0) {