mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
soc: swr-mstr: Register for wakeup irq after disabling clk
During clock stop, Register for lpass wakeup only after disabling the clock to avoid flooding of interrupts when master is turned on for pending slave irq. Change-Id: Ifbf604048d4972beb22b6286930193b83a2249e8 Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:
parent
0f70258551
commit
6a3050d838
1 changed files with 7 additions and 5 deletions
|
|
@ -1976,13 +1976,15 @@ static int swrm_runtime_suspend(struct device *dev)
|
|||
swrm_cmd_fifo_wr_cmd(swrm, 0x2, 0xF, 0xF,
|
||||
SWRS_SCP_CONTROL);
|
||||
usleep_range(100, 105);
|
||||
if (swrm->wakeup_req) {
|
||||
msm_aud_evt_blocking_notifier_call_chain(
|
||||
SWR_WAKE_IRQ_REGISTER, (void *)swrm);
|
||||
swrm->wakeup_triggered = false;
|
||||
}
|
||||
}
|
||||
swrm_clk_request(swrm, false);
|
||||
|
||||
if (swrm->clk_stop_mode0_supp && swrm->wakeup_req) {
|
||||
msm_aud_evt_blocking_notifier_call_chain(
|
||||
SWR_WAKE_IRQ_REGISTER, (void *)swrm);
|
||||
swrm->wakeup_triggered = false;
|
||||
}
|
||||
|
||||
}
|
||||
/* Retain SSR state until resume */
|
||||
if (current_state != SWR_MSTR_SSR)
|
||||
|
|
|
|||
Loading…
Reference in a new issue