mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
remote: report wakeup event after system resume
PD#138714: report wakeup event after system resume Change-Id: Ie51f6594a7e27c207dee48e82538343888f781cc Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
This commit is contained in:
@@ -35,8 +35,7 @@
|
||||
#include <linux/pinctrl/consumer.h>
|
||||
#include <linux/of_platform.h>
|
||||
#include <linux/amlogic/cpu_version.h>
|
||||
/*Temporary annotation for running linux-4.9*/
|
||||
/*#include <linux/amlogic/pm.h>*/
|
||||
#include <linux/amlogic/pm.h>
|
||||
#include <linux/of_address.h>
|
||||
|
||||
|
||||
@@ -614,8 +613,6 @@ static int remote_resume(struct device *dev)
|
||||
}
|
||||
spin_unlock_irqrestore(&chip->slock, flags);
|
||||
|
||||
/*Temporary annotation for running linux-4.9*/
|
||||
#if 0
|
||||
if (get_resume_method() == REMOTE_WAKEUP) {
|
||||
input_event(chip->r_dev->input_device,
|
||||
EV_KEY, KEY_POWER, 1);
|
||||
@@ -631,7 +628,7 @@ static int remote_resume(struct device *dev)
|
||||
input_event(chip->r_dev->input_device, EV_KEY, 133, 0);
|
||||
input_sync(chip->r_dev->input_device);
|
||||
}
|
||||
#endif
|
||||
|
||||
irq_set_affinity(chip->irqno, cpumask_of(chip->irq_cpumask));
|
||||
enable_irq(chip->irqno);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user