aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-bcm/kona.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-bcm/kona.c')
-rw-r--r--arch/arm/mach-bcm/kona.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-bcm/kona.c b/arch/arm/mach-bcm/kona.c
index 768bc2837bf5..ecdd71340a46 100644
--- a/arch/arm/mach-bcm/kona.c
+++ b/arch/arm/mach-bcm/kona.c
@@ -19,6 +19,7 @@
void __init kona_l2_cache_init(void)
{
+ unsigned int result;
int ret;
if (!IS_ENABLED(CONFIG_CACHE_L2X0))
@@ -31,7 +32,12 @@ void __init kona_l2_cache_init(void)
return;
}
- bcm_kona_smc(SSAPI_ENABLE_L2_CACHE, 0, 0, 0, 0);
+ result = bcm_kona_smc(SSAPI_ENABLE_L2_CACHE, 0, 0, 0, 0);
+ if (result != SEC_ROM_RET_OK) {
+ pr_err("Secure Monitor call failed (%u)! Skipping L2 init.\n",
+ result);
+ return;
+ }
/*
* The aux_val and aux_mask have no effect since L2 cache is already