Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18ce38ee authored by Dundi Raviteja's avatar Dundi Raviteja
Browse files

wlan: De-register interrupts while doing SSR

While doing SSR, Tx and Rx interrupts can trigger
before shutdown completes, this can cause interrupts
trigger during shutdown process.

To address this de-register Tx and Rx interrupts
immediately when shutdown is triggered.

Change-Id: I8abe625048f80e47cbd217a7c0cb3205a2a6a042
CRs-Fixed: 2748613
parent 2225e3bc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@
#include <linux/spinlock.h>
#include <linux/kthread.h>
#include <linux/wcnss_wlan.h>
#include "wlan_qct_pal_device.h"

/*---------------------------------------------------------------------------
 * Preprocessor Definitions and Constants
@@ -2037,6 +2038,9 @@ VOS_STATUS vos_watchdog_wlan_shutdown(void)
       return VOS_STATUS_E_FAILURE;
    }

    wpalUnRegisterInterrupt(DXE_INTERRUPT_RX_READY);
    wpalUnRegisterInterrupt(DXE_INTERRUPT_TX_COMPLE);

    /* Take the lock here */
    spin_lock(&gpVosWatchdogContext->wdLock);