ARM: hw_breakpoint: do not fail initcall if monitor mode is disabled
authorWill Deacon <will.deacon@arm.com>
Wed, 1 Dec 2010 17:37:45 +0000 (17:37 +0000)
committerWill Deacon <will.deacon@arm.com>
Wed, 15 Dec 2010 12:31:03 +0000 (12:31 +0000)
commit8fbf397c3389c1dedfa9ee412715046ab28fd82d
treeb363718fb46602f882cfb58d372ec6746e3f92c5
parent4a55c18e2023096c8684fae5fa1cfa96a03172ff
ARM: hw_breakpoint: do not fail initcall if monitor mode is disabled

The debug registers can only be manipulated from software if monitor
debug mode is enabled. On some cores, this can never be enabled (i.e.
the corresponding bit in the DSCR is RAZ/WI).

This patch ensures we can handle this hardware configuration and fail
gracefully, rather than blow up the kernel during boot.

Reported-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/hw_breakpoint.c