mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
PM_SUSPEND: suspend: set wakeup reason to stick mem [2/2]
PD#SWPL-2287 Problem: set wakeup reason to stick mem Solution: set wakeup reason to stick mem Verify: gxl,test pass Change-Id: Iff6f1824ea4ac9ec12b8295d4283992fdac03b14 Signed-off-by: Hong Guo <hong.guo@amlogic.com>
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include <linux/amlogic/pm.h>
|
||||
#include <linux/kobject.h>
|
||||
#include <../kernel/power/power.h>
|
||||
#include <linux/amlogic/scpi_protocol.h>
|
||||
|
||||
typedef unsigned long (psci_fn)(unsigned long, unsigned long,
|
||||
unsigned long, unsigned long);
|
||||
@@ -157,6 +158,8 @@ ssize_t suspend_reason_show(struct device *dev, struct device_attribute *attr,
|
||||
{
|
||||
unsigned int len;
|
||||
|
||||
if (scpi_get_wakeup_reason(&suspend_reason))
|
||||
return -EPERM;
|
||||
len = sprintf(buf, "%d\n", suspend_reason);
|
||||
|
||||
return len;
|
||||
|
||||
Reference in New Issue
Block a user