|
@@ -1249,22 +1249,6 @@ void hif_ramdump_handler(struct hif_opaque_softc *scn)
|
|
|
hif_usb_ramdump_handler(scn);
|
|
|
}
|
|
|
|
|
|
-#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 (scn->initial_wakeup_cb)
|
|
|
- scn->initial_wakeup_cb(scn->initial_wakeup_priv);
|
|
|
-
|
|
|
- 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)
|
|
|
{
|
|
|
struct hif_softc *scn = context;
|
|
@@ -1272,18 +1256,20 @@ irqreturn_t hif_wake_interrupt_handler(int irq, void *context)
|
|
|
|
|
|
HIF_INFO("wake interrupt received on irq %d", irq);
|
|
|
|
|
|
- if (scn->initial_wakeup_cb)
|
|
|
- scn->initial_wakeup_cb(scn->initial_wakeup_priv);
|
|
|
-
|
|
|
if (hif_pm_runtime_get_monitor_wake_intr(hif_ctx) &&
|
|
|
hif_pm_runtime_is_suspended(hif_ctx)) {
|
|
|
hif_pm_runtime_set_monitor_wake_intr(hif_ctx, 0);
|
|
|
hif_pm_runtime_request_resume(hif_ctx);
|
|
|
}
|
|
|
|
|
|
+ if (scn->initial_wakeup_cb)
|
|
|
+ scn->initial_wakeup_cb(scn->initial_wakeup_priv);
|
|
|
+
|
|
|
+ if (hif_is_ut_suspended(scn))
|
|
|
+ hif_ut_fw_resume(scn);
|
|
|
+
|
|
|
return IRQ_HANDLED;
|
|
|
}
|
|
|
-#endif /* WLAN_SUSPEND_RESUME_TEST */
|
|
|
|
|
|
void hif_set_initial_wakeup_cb(struct hif_opaque_softc *hif_ctx,
|
|
|
void (*callback)(void *),
|