Thread (19 messages) 19 messages, 8 authors, 2015-09-09

[PATCH 1/3] ARM: uniphier: add outer cache support

From: joe@perches.com (Joe Perches)
Date: 2015-08-24 02:29:27
Also in: linux-devicetree, lkml

On Mon, 2015-08-24 at 11:18 +0900, Masahiro Yamada wrote:
This commit adds support for UniPhier outer cache controller.
All the UniPhier SoCs are equipped with the L2 cache, while the L3
cache is currently only integrated on PH1-Pro5 SoC.
style trivia:

You might add and use
	#define pr_fmt(fmt) "uniphier: " fmt
before any other #include so all of the pr_<level>
uses are automatically prefixed.
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/mm/cache-uniphier.c b/arch/arm/mm/cache-uniphier.c
[]
+static int __init __uniphier_cache_init(void)
+{
[]
+	if (uniphier_outer_levels == 0) {
+		ret = ret ?: -ENODEV;
+		pr_err("uniphier: failed to initialize outer cache\n");
So this becomes:
		pr_err("failed to initialize outer cache\n");
+int __init uniphier_cache_init(void)
+{
[]
+	pr_info("uniphier: enabled outer cache (%s)\n",
+		uniphier_outer_levels >= 2 ? "L2 and L3" : "L2");
	pr_info("enabled outer cache (%s)\n",
		uniphier_outer_levels >= 2 ? "L2 and L3" : "L2");

etc...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help