haven: configure dbl and msgq interrupts as wakeup capable

Configure dbl and msgq interrupts as wakeup capable to wake up the SVM
from suspend-to-RAM state.

Change-Id: I1825109736ace36c5c871d52dfefe4a320fea335
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
This commit is contained in:
Murali Nalajala 2020-06-25 18:45:24 -07:00
commit a02a3e54b2
2 changed files with 2 additions and 0 deletions

View file

@ -569,6 +569,7 @@ int hh_dbl_populate_cap_info(enum hh_dbl_label label, u64 cap_id,
goto err;
}
irq_set_irq_wake(rx_irq, 1);
wake_up_interruptible(&cap_table_entry->cap_wq);
pr_debug("%s: label: %d; rx_cap_id: %llu; dir: %d; rx_irq: %d\n",

View file

@ -462,6 +462,7 @@ int hh_msgq_populate_cap_info(enum hh_msgq_label label, u64 cap_id,
goto err;
}
irq_set_irq_wake(irq, 1);
spin_unlock(&cap_table_entry->cap_entry_lock);
pr_debug(