29 lines
896 B
Diff
29 lines
896 B
Diff
From 4c55b3899c4aee51ace457b3bf7b8b9d387ea50d Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megous@megous.com>
|
|
Date: Wed, 2 Dec 2020 12:10:51 +0100
|
|
Subject: [PATCH 275/478] misc: modem-power: Stay awake for at least 2s after
|
|
modem wakes the system
|
|
|
|
Signed-off-by: Ondrej Jirman <megous@megous.com>
|
|
---
|
|
drivers/misc/modem-power.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/drivers/misc/modem-power.c b/drivers/misc/modem-power.c
|
|
index 9afa64ce0c15..c33e56f0dc2c 100644
|
|
--- a/drivers/misc/modem-power.c
|
|
+++ b/drivers/misc/modem-power.c
|
|
@@ -1133,6 +1133,9 @@ static irqreturn_t mpwr_gpio_isr(int irq, void *dev_id)
|
|
if (irq == mpwr->wakeup_irq) {
|
|
dev_dbg(mpwr->dev, "wakeup irq\n");
|
|
|
|
+ if (device_can_wakeup(mpwr->dev))
|
|
+ pm_wakeup_event(mpwr->dev, 2000);
|
|
+
|
|
set_bit(MPWR_F_GOT_WAKEUP, mpwr->flags);
|
|
spin_lock(&mpwr->lock);
|
|
mpwr->last_wakeup = ktime_get();
|
|
--
|
|
2.35.3
|
|
|