]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: i.MX: system.c: Remove redundant errata 752271 code
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Sun, 19 Jun 2016 01:09:28 +0000 (18:09 -0700)
committerShawn Guo <shawnguo@kernel.org>
Tue, 21 Jun 2016 12:40:13 +0000 (20:40 +0800)
Applying a fix for ARM errata 752271 would already be taken care by a
call to a 'fixup' hook as a part of l2x0_of_init() -> __l2c_init() call
chain. Moreso the code in 'fixup' function would do that based on the
PL310's revsion information, whereas removed code does so based on SoC
version which does not work very well on i.MX6Q+ which identifies itself
as i.MX6Q as well but is not affected by 752271.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/system.c

index d9f8b0e1d96a581c027234243d5bd16743f4868c..b1533768adb0b6136b7b6a2fffd6780ea8cf53d9 100644 (file)
@@ -110,17 +110,6 @@ void __init imx_init_l2cache(void)
                /* Configure the L2 PREFETCH and POWER registers */
                val = readl_relaxed(l2x0_base + L310_PREFETCH_CTRL);
                val |= 0x70800000;
-               /*
-                * The L2 cache controller(PL310) version on the i.MX6D/Q is r3p1-50rel0
-                * The L2 cache controller(PL310) version on the i.MX6DL/SOLO/SL is r3p2
-                * But according to ARM PL310 errata: 752271
-                * ID: 752271: Double linefill feature can cause data corruption
-                * Fault Status: Present in: r3p0, r3p1, r3p1-50rel0. Fixed in r3p2
-                * Workaround: The only workaround to this erratum is to disable the
-                * double linefill feature. This is the default behavior.
-                */
-               if (cpu_is_imx6q())
-                       val &= ~(1 << 30 | 1 << 23);
                writel_relaxed(val, l2x0_base + L310_PREFETCH_CTRL);
        }