Subject: [PATCH 3/7] ARM: hw_breakpoint: fix ordering of debug register reset sequence

From: [email-masked] (Stephen Boyd)
Date: Wed, 24 Oct 2012 15:53:44 -0700

On 10/17/12 08:31, Will Deacon wrote:
> 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.
>
> Signed-off-by: Will Deacon <[email-masked]>

Reported-by: Stephen Boyd <[email-masked]>
Tested-by: Stephen Boyd <[email-masked]>

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation