mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ARM: cache-l2x0: add error message when fail to enable cache
@ 2014-05-15  5:49 Gioh Kim
  0 siblings, 0 replies; only message in thread
From: Gioh Kim @ 2014-05-15  5:49 UTC (permalink / raw)
  To: Russell King, linux-arm-kernel, linux-kernel; +Cc: gunho.lee, gurugio, Gioh Kim

Add error message when fail to enable cache

Signed-off-by: Gioh Kim <gioh.kim@lge.com>
---
 arch/arm/mm/cache-l2x0.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 7abde2c..5102c62 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -418,7 +418,11 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask)
 		outer_cache.disable = l2x0_disable;
 	}
 
-	pr_info("%s cache controller enabled\n", type);
+	if (readl_relaxed(l2x0_base + L2X0_CTRL) & L2X0_CTRL_EN)
+		pr_info("l2x0: %s cache controller enabled\n", type);
+	else
+		pr_err("l2x0: failed to enable %s cache controller\n", type);
+
 	pr_info("l2x0: %d ways, CACHE_ID 0x%08x, AUX_CTRL 0x%08x, Cache size: %d kB\n",
 		ways, cache_id, aux, l2x0_size >> 10);
 }
-- 
1.7.9.5


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-15  5:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-15  5:49 [PATCH] ARM: cache-l2x0: add error message when fail to enable cache Gioh Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®