]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:22 +0000 (09:32 -0700)
commitf3d426d5b791e91a0c515ac8f9dbf9e16dc439e6
tree136e8f3a690154bae0f7ec39fbc0017779e0a91b
parentc2fa9282ae75212b61077b274bf69d89890362e5
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mm/cache-l2x0.c