From a02a3e54b2b3066d3a4090679e6c2228dfc54e49 Mon Sep 17 00:00:00 2001 From: Murali Nalajala Date: Thu, 25 Jun 2020 18:45:24 -0700 Subject: [PATCH] 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 --- drivers/virt/haven/hh_dbl.c | 1 + drivers/virt/haven/hh_msgq.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/virt/haven/hh_dbl.c b/drivers/virt/haven/hh_dbl.c index 04a108bcfac5..265c0dc6110e 100644 --- a/drivers/virt/haven/hh_dbl.c +++ b/drivers/virt/haven/hh_dbl.c @@ -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", diff --git a/drivers/virt/haven/hh_msgq.c b/drivers/virt/haven/hh_msgq.c index da7daf28e915..3d2b87acd961 100644 --- a/drivers/virt/haven/hh_msgq.c +++ b/drivers/virt/haven/hh_msgq.c @@ -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(