linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i8042: Increment wakeup_count for the respective port.
@ 2018-06-01 18:00 Ravi Chandra Sadineni
  2018-06-02  1:07 ` [PATCH V2] " Ravi Chandra Sadineni
  0 siblings, 1 reply; 7+ messages in thread
From: Ravi Chandra Sadineni @ 2018-06-01 18:00 UTC (permalink / raw)
  To: dmitry.torokhov, chenhong3, ravisadineni, ravisadineni, dtor
  Cc: tbroch, linux-kernel, linux-input, rajatja, bleung

Call pm_wakeup_event on every irq. This should help us in identifying if
i8042 port was a potential wake reason for the last resume.

Signed-off-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
---
 drivers/input/serio/i8042.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
index 824f4c1c1f310..96e27766d553d 100644
--- a/drivers/input/serio/i8042.c
+++ b/drivers/input/serio/i8042.c
@@ -573,6 +573,9 @@ static irqreturn_t i8042_interrupt(int irq, void *dev_id)
 	port = &i8042_ports[port_no];
 	serio = port->exists ? port->serio : NULL;
 
+	if (serio && device_may_wakeup(&serio->dev))
+		pm_wakeup_event(&serio->dev, 0);
+
 	filter_dbg(port->driver_bound, data, "<- i8042 (interrupt, %d, %d%s%s)\n",
 		   port_no, irq,
 		   dfl & SERIO_PARITY ? ", bad parity" : "",
-- 
2.17.0.921.gf22659ad46-goog

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-06-12 23:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-01 18:00 [PATCH] i8042: Increment wakeup_count for the respective port Ravi Chandra Sadineni
2018-06-02  1:07 ` [PATCH V2] " Ravi Chandra Sadineni
2018-06-04 21:53   ` Dmitry Torokhov
2018-06-05  9:14     ` Rafael J. Wysocki
2018-06-05 19:01       ` [PATCH V3] " Ravi Chandra Sadineni
2018-06-12 23:33         ` Dmitry Torokhov
2018-06-05 19:06       ` [PATCH V2] " Ravi Chandra Sadineni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).