From: Barry Song <21cnbao@gmail.com> Date: Wed, 14 Sep 2011 02:20:01 +0000 (+0100) Subject: ARM: 7090/1: CACHE-L2X0: filter start address can be 0 and is often 0 X-Git-Tag: upstream/snapshot3+hdmi~8855^2~3^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74d41f39a9c161cd0434bb13d929d75fc7be75bd;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git ARM: 7090/1: CACHE-L2X0: filter start address can be 0 and is often 0 this patch fixes the error in Rob Herring's ARM: 7009/1: l2x0: Add OF based initialization http://www.spinics.net/lists/arm-kernel/msg131123.html it has been in rmk/for-next with commit 41c86ff5b Cc: Shawn Guo Cc: Arnd Bergmann Signed-off-by: Barry Song Acked-by: Rob Herring Signed-off-by: Russell King --- diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index a780448..0d85d22 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c @@ -437,7 +437,7 @@ static void __init pl310_of_setup(const struct device_node *np, of_property_read_u32_array(np, "arm,filter-ranges", filter, ARRAY_SIZE(filter)); - if (filter[0] && filter[1]) { + if (filter[1]) { writel_relaxed(ALIGN(filter[0] + filter[1], SZ_1M), l2x0_base + L2X0_ADDR_FILTER_END); writel_relaxed((filter[0] & ~(SZ_1M - 1)) | L2X0_ADDR_FILTER_EN,