From: shengfei Xu Date: Mon, 10 Apr 2017 03:12:48 +0000 (+0800) Subject: ARM: rockchip: pm: add system suspend support for rk3288 X-Git-Tag: release-20171130_firefly~4^2~750 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f55c472258b097d41a3c3ceda2e35400a9aa79f2;p=firefly-linux-kernel-4.4.55.git ARM: rockchip: pm: add system suspend support for rk3288 PSCI v1.0 introduces a new API called PSCI_SYSTEM_SUSPEND. This API provides the mechanism by which the calling OS can request entry into the deepest possible system sleep state. Change-Id: I2dbb56ad337315eee76170443de96a1df05f8aab Signed-off-by: shengfei Xu --- diff --git a/arch/arm/mach-rockchip/pm.c b/arch/arm/mach-rockchip/pm.c index be28a78f50b0..8d956f7a13e9 100644 --- a/arch/arm/mach-rockchip/pm.c +++ b/arch/arm/mach-rockchip/pm.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "pm.h" #include "embedded/rk3288_resume.h" @@ -348,6 +349,9 @@ void __init rockchip_suspend_init(void) struct device_node *np; int ret; + if (psci_smp_available()) + return; + np = of_find_matching_node_and_match(NULL, rockchip_pmu_of_device_ids, &match); if (!match) {