diff options
author | Ravi Chandra Sadineni <ravisadineni@chromium.org> | 2019-05-15 16:14:04 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-05-15 16:25:12 -0700 |
commit | 145b11d1baa3462ba211bd845ecf94057b7d10e1 (patch) | |
tree | 75b9e0de014876984c4af4942c5e86f28725210a /drivers/input/mouse | |
parent | 14e0c7317ed58bcd15af5c3d09818ee0f2e3984c (diff) | |
download | linux-145b11d1baa3462ba211bd845ecf94057b7d10e1.tar.gz linux-145b11d1baa3462ba211bd845ecf94057b7d10e1.tar.bz2 linux-145b11d1baa3462ba211bd845ecf94057b7d10e1.zip |
Input: elan_i2c - increment wakeup count if wake source
Notify the PM core that this device is the wake source. This helps
userspace daemon tracking the wake sources to identify the origin of the
wake.
Signed-off-by: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r-- | drivers/input/mouse/elan_i2c_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index f9525d6f0bfe..2c0561e20b7f 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -981,6 +981,8 @@ static irqreturn_t elan_isr(int irq, void *dev_id) if (error) goto out; + pm_wakeup_event(dev, 0); + switch (report[ETP_REPORT_ID_OFFSET]) { case ETP_REPORT_ID: elan_report_absolute(data, report); |