soc: swr-mstr: Avoid handling redundant swr wakeup events

It is sometimes observed that afe could send multiple wakeup
events at a time. Avoid this by handling wakeup event only once
per swr suspend.

Change-Id: Ieb9ed1b18c8c93cb7db4b75e3411cc25838be492
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:
Ramprasad Katkam
2018-09-18 13:22:58 +05:30
parent 662dec1e1e
commit cd61c6ef14
2 changed files with 7 additions and 3 deletions

View File

@@ -150,8 +150,8 @@ struct swr_mstr_ctrl {
u32 clk_stop_mode0_supp;
struct work_struct wakeup_work;
u32 wakeup_req;
bool dev_up;
bool wakeup_triggered;
};
#endif /* _SWR_WCD_CTRL_H */