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)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 23 Apr 2012 13:21:52 +0000 (14:21 +0100)
commitab4d536890853ab6675ede65db40e2c0980cb0ea
tree3a1d9d7b06c82568a1a6b2e9f21a0576dabc30f4
parentf154fe9b806574437b47f08e924ad10c0e240b23
ARM: 7398/1: l2x0: only write to debug registers on PL310

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.

Cc: stable@vger.kernel.org
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c