soc: swr-mstr: Reinit clk off signal before waiting
Reinit clk off signal before waiting to avoid false positives because of the signal complete that happened prior to the waiting. Change-Id: I678fdc8589039d9f59e6590a4899309dad479181 Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
This commit is contained in:
parent
1face6aa6d
commit
7f6462ebd7
1 changed files with 2 additions and 1 deletions
|
@ -2110,9 +2110,10 @@ int swrm_wcd_notify(struct platform_device *pdev, u32 id, void *data)
|
|||
break;
|
||||
case SWR_DEVICE_SSR_UP:
|
||||
/* wait for clk voting to be zero */
|
||||
reinit_completion(&swrm->clk_off_complete);
|
||||
if (swrm->clk_ref_count &&
|
||||
!wait_for_completion_timeout(&swrm->clk_off_complete,
|
||||
(1 * HZ/100)))
|
||||
msecs_to_jiffies(200)))
|
||||
dev_err(swrm->dev, "%s: clock voting not zero\n",
|
||||
__func__);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue