From: Ravi Chandra Sadineni Date: Wed, 15 May 2019 23:14:04 +0000 (-0700) Subject: Input: elan_i2c - increment wakeup count if wake source X-Git-Tag: v5.4~3^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=145b11d1baa3462ba211bd845ecf94057b7d10e1;p=platform%2Fkernel%2Flinux-rpi.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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index f9525d6..2c0561e 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);