aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaudiu Manoil <claudiu.manoil@nxp.com>2016-07-07 08:49:02 -0400
committerScott Wood <oss@buserror.net>2016-07-08 20:55:34 -0400
commit8ebf506ab2729012a3fe7dd8765a7d24202d409b (patch)
tree1307558e2dd44bf5eafb27e0916cc0e7a814f683
parent63a72284b159c569ec52f380c9a8dd9342d43bb8 (diff)
powerpc/85xx: Don't report SRAM to L2 cache fallback as error
If the SRAM region parameters are missing the SRAM driver probing exits and the L2 region is configured as L2 cache entirely. This is the expected default behaviour, so it makes no sense to report it as an error. Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com> Signed-off-by: Scott Wood <oss@buserror.net>
-rw-r--r--arch/powerpc/sysdev/fsl_85xx_l2ctlr.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
index 861cebf9c292..c27058e5df26 100644
--- a/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
+++ b/arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
@@ -90,12 +90,8 @@ static int mpc85xx_l2ctlr_of_probe(struct platform_device *dev)
90 } 90 }
91 l2cache_size = *prop; 91 l2cache_size = *prop;
92 92
93 if (get_cache_sram_params(&sram_params)) { 93 if (get_cache_sram_params(&sram_params))
94 dev_err(&dev->dev, 94 return 0; /* fall back to L2 cache only */
95 "Entire L2 as cache, provide valid sram offset and size\n");
96 return -EINVAL;
97 }
98
99 95
100 rem = l2cache_size % sram_params.sram_size; 96 rem = l2cache_size % sram_params.sram_size;
101 ways = LOCK_WAYS_FULL * sram_params.sram_size / l2cache_size; 97 ways = LOCK_WAYS_FULL * sram_params.sram_size / l2cache_size;