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

Commit 8ae1b121 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: add check condition before enabling irq"

parents f03233c4 01906e60
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3160,6 +3160,7 @@ static int swrm_runtime_suspend(struct device *dev)
	struct swr_master *mstr = &swrm->master;
	struct swr_device *swr_dev;
	int current_state = 0;
	struct irq_data *irq_data = NULL;

	trace_printk("%s: pm_runtime: suspend state: %d\n",
		__func__, swrm->state);
@@ -3245,6 +3246,8 @@ static int swrm_runtime_suspend(struct device *dev)

		if (swrm->clk_stop_mode0_supp) {
			if (swrm->wake_irq > 0) {
				irq_data = irq_get_irq_data(swrm->wake_irq);
				if (irq_data && irqd_irq_disabled(irq_data))
					enable_irq(swrm->wake_irq);
			} else if (swrm->ipc_wakeup) {
				msm_aud_evt_blocking_notifier_call_chain(