mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacmn: Remove WLAN_SUSPEND_RESUME_TEST flag for WAKE MSI handler
WAKE MSI can be triggered and handled properly for both unit test framework and runtime PM feature in runtime, so there is no need to have a compile time flag. Hence remove it. Change-Id: I97127575114d6be40b36a7417cc7c177cec69808 CRs-fixed: 2496366
This commit is contained in:
parent
a516abcc57
commit
fd75cd2948
1 changed files with 6 additions and 20 deletions
|
|
@ -1249,13 +1249,19 @@ 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;
|
||||
struct hif_opaque_softc *hif_ctx = GET_HIF_OPAQUE_HDL(scn);
|
||||
|
||||
HIF_INFO("wake interrupt received on irq %d", irq);
|
||||
|
||||
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);
|
||||
|
||||
|
|
@ -1264,26 +1270,6 @@ irqreturn_t hif_wake_interrupt_handler(int irq, void *context)
|
|||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
#else /* WLAN_SUSPEND_RESUME_TEST */
|
||||
irqreturn_t hif_wake_interrupt_handler(int irq, void *context)
|
||||
{
|
||||
struct hif_softc *scn = context;
|
||||
struct hif_opaque_softc *hif_ctx = GET_HIF_OPAQUE_HDL(scn);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
#endif /* WLAN_SUSPEND_RESUME_TEST */
|
||||
|
||||
void hif_set_initial_wakeup_cb(struct hif_opaque_softc *hif_ctx,
|
||||
void (*callback)(void *),
|
||||
|
|
|
|||
Loading…
Reference in a new issue