ARM: 7397/1: l2x0: only apply workaround for erratum #753970 on PL310
authorWill Deacon <will.deacon@arm.com>
Fri, 20 Apr 2012 16:21:08 +0000 (17:21 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:45 +0000 (13:14 +0100)
commit721293c3ce382a69b89a743e25aaff6553ad2079
treedcddd3968c17a553066f235922d1cc7558cfcd12
parent28bd5ddf286b858b8148c3de5854cbc00e701229
ARM: 7397/1: l2x0: only apply workaround for erratum #753970 on PL310

commit f154fe9b806574437b47f08e924ad10c0e240b23 upstream.

The workaround for PL310 erratum #753970 can lead to deadlock on systems
with an L220 cache controller.

This patch makes the workaround effective only when the cache controller
is identified as a PL310 at probe time.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[bwh: Backported to 3.2: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/mm/cache-l2x0.c