bcm53xx: refresh kernel patches
[openwrt.git] / target / linux / bcm53xx / patches-3.18 / 132-ARM-BCM5301X-Ignore-another-BCM4709-specific-fault-c.patch
1 From cd43921285658372c0db8019684979edb74eaffd Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 11 Feb 2015 16:37:05 +0100
4 Subject: [PATCH soc] ARM: BCM5301X: Ignore another (BCM4709 specific) fault
5  code
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Broadcom ARM devices seem to generate some fault once per boot. We
11 already have an ignoring handler for BCM4707/BCM4708, but BCM4709
12 generates different code.
13
14 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
15 ---
16  arch/arm/mach-bcm/bcm_5301x.c | 9 +++++----
17  1 file changed, 5 insertions(+), 4 deletions(-)
18
19 --- a/arch/arm/mach-bcm/bcm_5301x.c
20 +++ b/arch/arm/mach-bcm/bcm_5301x.c
21 @@ -18,15 +18,16 @@ static bool first_fault = true;
22  static int bcm5301x_abort_handler(unsigned long addr, unsigned int fsr,
23                                  struct pt_regs *regs)
24  {
25 -       if (fsr == 0x1c06 && first_fault) {
26 +       if ((fsr == 0x1406 || fsr == 0x1c06) && first_fault) {
27                 first_fault = false;
28  
29                 /*
30 -                * These faults with code 0x1c06 happens for no good reason,
31 -                * possibly left over from the CFE boot loader.
32 +                * These faults with codes 0x1406 (BCM4709) or 0x1c06 happens
33 +                * for no good reason, possibly left over from the CFE boot
34 +                * loader.
35                  */
36                 pr_warn("External imprecise Data abort at addr=%#lx, fsr=%#x ignored.\n",
37 -               addr, fsr);
38 +                       addr, fsr);
39  
40                 /* Returning non-zero causes fault display and panic */
41                 return 0;