mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
ARM: vexpress: allow native pm ops backends to probe for psci suppport
This patch allows the vexpress 'rtsm' native backend to probe the dt for presence of the psci backend. If present then the native implementation of the 'bL_platform_power_ops' is not used. Signed-off-by: Achin Gupta <achin.gupta@arm.com> Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com> Signed-off-by: Jon Medhurst <tixy@linaro.org>
This commit is contained in:
parent
3d2f3686f7
commit
659eaba2ac
|
|
@ -23,6 +23,7 @@
|
|||
#include <asm/cacheflush.h>
|
||||
#include <asm/cputype.h>
|
||||
#include <asm/cp15.h>
|
||||
#include <asm/psci.h>
|
||||
|
||||
|
||||
#define RST_HOLD0 0x0
|
||||
|
|
@ -217,6 +218,12 @@ static int __init dcscb_init(void)
|
|||
unsigned int cfg;
|
||||
int ret;
|
||||
|
||||
ret = psci_probe();
|
||||
if (!ret) {
|
||||
pr_debug("psci found. Aborting native init\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (!cci_probed())
|
||||
return -ENODEV;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user