mirror of https://gitee.com/openkylin/linux.git
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:
parent
14e0c7317e
commit
145b11d1ba
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue