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>
This commit is contained in:
Ravi Chandra Sadineni 2019-05-15 16:14:04 -07:00 committed by Dmitry Torokhov
parent 14e0c7317e
commit 145b11d1ba
1 changed files with 2 additions and 0 deletions

View File

@ -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);