ARM: 7608/1: l2x0: Only set .set_debug on PL310 r3p0 and earlier
authorRob Herring <rob.herring@calxeda.com>
Fri, 21 Dec 2012 21:42:39 +0000 (22:42 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Jan 2013 10:34:56 +0000 (10:34 +0000)
commit74ddcdb868a84f4a9f65e33c1ca0d24e1134e53a
treefbcc96fb7e28648990df5d9933149236be98088f
parent4a490b78cb7e0e5efa44425df72a9fedc1c36366
ARM: 7608/1: l2x0: Only set .set_debug on PL310 r3p0 and earlier

PL310 errata work-arounds using .set_debug function are only needed on
r3p0 and earlier, so check the rev and only set .set_debug on older revs.

Avoiding debug register accesses fixes aborts on non-secure platforms
like highbank. It is assumed that non-secure platforms needing these
work-arounds have already implemented .set_debug with secure monitor
calls.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c