From: Gioh Kim <gioh.kim@lge.com>
To: Russell King <linux@arm.linux.org.uk>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Cc: gunho.lee@lge.com, gurugio@gmail.com, Gioh Kim <gioh.kim@lge.com>
Subject: [PATCH] ARM: cache-l2x0: add error message when fail to enable cache
Date: Thu, 15 May 2014 14:49:35 +0900 [thread overview]
Message-ID: <1400132976-5872-1-git-send-email-gioh.kim@lge.com> (raw)
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
reply other threads:[~2014-05-15 5:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400132976-5872-1-git-send-email-gioh.kim@lge.com \
--to=gioh.kim@lge.com \
--cc=gunho.lee@lge.com \
--cc=gurugio@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®