projects/WeTek_Play: Disable suspend and emulate poweroff by suspending the device

This commit is contained in:
Alex Deryskyba 2018-12-02 01:06:56 +02:00
parent 3c3c182f31
commit 0ededecf06
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
[Sleep]
SuspendMode=false
HibernateMode=false

View File

@ -0,0 +1,12 @@
diff --git a/arch/arm/mach-meson6/pm.c b/arch/arm/mach-meson6/pm.c
index 45c0500968f..c5de8f8ca3e 100755
--- a/arch/arm/mach-meson6/pm.c
+++ b/arch/arm/mach-meson6/pm.c
@@ -1143,6 +1143,7 @@ static struct platform_driver meson_pm_driver = {
static int __init meson_pm_init(void)
{
printk("enter %s\n",__func__);
+ pm_power_off = meson_pm_suspend;
return platform_driver_probe(&meson_pm_driver, meson_pm_probe);
}
late_initcall(meson_pm_init);