qcacmn: Add Wake MSI support
Using the same MSI for wake and copy engines has a number of negative
side effects. Instead, set aside a whole MSI just for the wake
notification from firmware.
Change-Id: If871b88ca255ad970dabb4a7773d2b4d3b71c3fe
CRs-Fixed: 2055359
diff --git a/hif/src/hif_main.c b/hif/src/hif_main.c
index 15259bc..35a2835 100644
--- a/hif/src/hif_main.c
+++ b/hif/src/hif_main.c
@@ -1186,3 +1186,23 @@
}
#endif
+#ifdef WLAN_SUSPEND_RESUME_TEST
+irqreturn_t hif_wake_interrupt_handler(int irq, void *context)
+{
+ struct hif_softc *scn = context;
+
+ HIF_INFO("wake interrupt received on irq %d", irq);
+
+ if (hif_is_ut_suspended(scn))
+ hif_ut_fw_resume(scn);
+
+ return IRQ_HANDLED;
+}
+#else /* WLAN_SUSPEND_RESUME_TEST */
+irqreturn_t hif_wake_interrupt_handler(int irq, void *context)
+{
+ HIF_INFO("wake interrupt received on irq %d", irq);
+
+ return IRQ_HANDLED;
+}
+#endif /* WLAN_SUSPEND_RESUME_TEST */