From: Will Deacon Date: Fri, 21 Sep 2012 14:38:26 +0000 (+0100) Subject: ARM: hw_breakpoint: fix ordering of debug register reset sequence X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~53^2^2~8^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=614bea500a88be2a841af0967469961470f2be83;p=pandora-kernel.git ARM: hw_breakpoint: fix ordering of debug register reset sequence The debug register reset sequence for v7 and v7.1 is congruent with tap-dancing through a minefield. Rather than wait until we've blown ourselves to pieces, this patch instead checks the debug_err_mask after each potentially faulting operation. We also move the enabling of monitor_mode to the end of the sequence in order to prevent spurious debug events generated by UNKNOWN register values. Reported-by: Stephen Boyd Tested-by: Stephen Boyd Signed-off-by: Will Deacon --- Reading git-diff-tree failed