diff options
author | Ravi Chandra Sadineni <ravisadineni@chromium.org> | 2018-06-13 02:32:40 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-06-13 02:38:23 +0300 |
commit | 9bd034225300c7ddf14f4b4c28531efc7a5e1524 (patch) | |
tree | 59eb43d2db65b838060b15ed0b8e9a948b04b385 /drivers/input/serio/i8042.c | |
parent | 925ffff2ea8b408428f2558074af92cf31325156 (diff) | |
download | linux-9bd034225300c7ddf14f4b4c28531efc7a5e1524.tar.xz |
Input: i8042 - increment wakeup_count for the respective port
Call pm_wakeup_event on every interrupt. This should help us in identifying
if keyboard was a potential wake reason for the last resume.
Signed-off-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/serio/i8042.c')
-rw-r--r-- | drivers/input/serio/i8042.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 824f4c1c1f31..b8bc71569349 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 (irq && serio) + 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" : "", |