diff options
author | Jon Medhurst <tixy@linaro.org> | 2013-09-17 15:29:33 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2014-03-31 13:58:20 +0100 |
commit | 9c6756fbc53e880dfcbd091737d9f116435b99a4 (patch) | |
tree | 0c67b6a2b544bf479a988aa2e198120a7a3e1915 /drivers/bus | |
parent | 394df350c620e95cfeb2d4a47bdf968bb3d7dc27 (diff) |
drivers: CCI: Disable probing when PSCI is being used.
When booting with boottime selection of PSCI the device-tree still
contains a CCI device, even though this isn't accessible in the
non-secure world. We therefore need to detect this situation, otherwise
cci_pmu_probe will call probe_cci_revision and crash the system on boot.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Diffstat (limited to 'drivers/bus')
-rw-r--r-- | drivers/bus/arm-cci.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 962fd35cbd8..8965fb59bb3 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -26,6 +26,7 @@ #include <asm/cacheflush.h> #include <asm/irq_regs.h> +#include <asm/psci.h> #include <asm/pmu.h> #include <asm/smp_plat.h> @@ -969,6 +970,11 @@ static int cci_probe(void) const char *match_str; bool is_ace; + if (psci_probe() == 0) { + pr_debug("psci found. Aborting cci probe\n"); + return -ENODEV; + } + np = of_find_matching_node(NULL, arm_cci_matches); if (!np) return -ENODEV; |