soc: add check condition before enabling irq.

Enable interrupt request only when the interrupt is
in disabled state.

Change-Id: I67795bf0ee344661e02b0fec3181cd7980d56652
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
Šī revīzija ir iekļauta:
Ashwini Muduganti
2020-10-13 17:10:09 -07:00
vecāks ddeac0d77f
revīzija 7c9ef4221e

Parādīt failu

@@ -3250,7 +3250,9 @@ static int swrm_runtime_suspend(struct device *dev)
}
if (swrm->clk_stop_mode0_supp) {
if (swrm->wake_irq > 0) {
if ((swrm->wake_irq > 0) &&
(irqd_irq_disabled(
irq_get_irq_data(swrm->wake_irq)))) {
enable_irq(swrm->wake_irq);
} else if (swrm->ipc_wakeup) {
msm_aud_evt_blocking_notifier_call_chain(