ARM: 7397/1: l2x0: only apply workaround for erratum #753970 on PL310
commitc2fa9282ae75212b61077b274bf69d89890362e5
authorWill Deacon <will.deacon@arm.com>
Fri, 20 Apr 2012 16:21:08 +0000 (20 17:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:21 +0000 (12 09:32 -0700)
treec5679d2f7d88ef5940c3354f4b6ab84038fec4db
parent502fd05d816f4a74a1a7bb45896ba35a33f8da10
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/cache-l2x0.c