Skip to content

Commit

Permalink
drivers: qcom: smp2p: add a timer to the held wakelock
Browse files Browse the repository at this point in the history
On adding logs to the wakelock addition/removal code in the wakeup driver, it can
be found that the smp2p wakelock is held for 2ms at most. This wakelock
for some weird reason gets stuck at times and doesn't let the device
deep sleep. This commit adds a timeout of 250ms to
the wakelock, which is already far more than what it should take to
finish it's job.
  • Loading branch information
uditkarode committed Jul 24, 2021
1 parent 6b44557 commit 121a47c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/soc/qcom/smp2p.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ static irqreturn_t qcom_smp2p_isr(int irq, void *data)
{
struct qcom_smp2p *smp2p = data;

__pm_stay_awake(&smp2p->ws);
__pm_wakeup_event(&smp2p->ws, 250);
return IRQ_WAKE_THREAD;
}

Expand Down Expand Up @@ -350,7 +350,6 @@ static irqreturn_t qcom_smp2p_intr(int irq, void *data)
}

out:
__pm_relax(&smp2p->ws);
return IRQ_HANDLED;
}

Expand Down

0 comments on commit 121a47c

Please sign in to comment.