ARM: 7398/1: l2x0: only write to debug registers on PL310
authorWill Deacon <will.deacon@arm.com>
Fri, 20 Apr 2012 16:22:11 +0000 (17:22 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:45 +0000 (13:14 +0100)
commit989046b49627c1beacad7517d044401f14bbd53c
tree34457a2767f2c936a15e0c3fc3a6d193ee21744f
parent721293c3ce382a69b89a743e25aaff6553ad2079
ARM: 7398/1: l2x0: only write to debug registers on PL310

commit ab4d536890853ab6675ede65db40e2c0980cb0ea upstream.

PL310 errata #588369 and #727915 require writes to the debug registers
of the cache controller to work around known problems. Writing these
registers on L220 may cause deadlock, so ensure that we only perform
this operation when we identify 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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/mm/cache-l2x0.c