mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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>
This commit is contained in:
parent
7c1dc5a70e
commit
01906e6049
1 changed files with 4 additions and 1 deletions
|
|
@ -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,7 +3246,9 @@ static int swrm_runtime_suspend(struct device *dev)
|
|||
|
||||
if (swrm->clk_stop_mode0_supp) {
|
||||
if (swrm->wake_irq > 0) {
|
||||
enable_irq(swrm->wake_irq);
|
||||
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(
|
||||
SWR_WAKE_IRQ_REGISTER, (void *)swrm);
|
||||
|
|
|
|||
Loading…
Reference in a new issue