aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorBrian Pomerantz <bapper@mvista.com>2007-02-12 03:53:03 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:32 -0500
commitdfb2a76378f095b0aaa2024ce9a8cfb2ae2354d2 (patch)
treeadaf082fb273066c518839770abcf1d88359d2ae /drivers/edac
parent27b0b2f44adffe0193a695bb528a83b550b8e54b (diff)
[PATCH] EDAC: e752x bit mask fix
The fatal vs. non-fatal mask for the sysbus FERR status is incorrect according to the E7520 datasheet. This patch corrects the mask to correctly handle fatal and non-fatal errors. Signed-off-by: Brian Pomerantz <bapper@mvista.com> Signed-off-by: Dave Jiang <djiang@mvista.com> Signed-off-by: Doug Thompson <norsk5@xmission.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: Andi Kleen <ak@suse.de> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/e752x_edac.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index c82bc0ed7f14..ab9873924f4f 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -556,17 +556,17 @@ static void e752x_check_sysbus(struct e752x_error_info *info,
556 error32 = (stat32 >> 16) & 0x3ff; 556 error32 = (stat32 >> 16) & 0x3ff;
557 stat32 = stat32 & 0x3ff; 557 stat32 = stat32 & 0x3ff;
558 558
559 if(stat32 & 0x083) 559 if(stat32 & 0x087)
560 sysbus_error(1, stat32 & 0x083, error_found, handle_error); 560 sysbus_error(1, stat32 & 0x087, error_found, handle_error);
561 561
562 if(stat32 & 0x37c) 562 if(stat32 & 0x378)
563 sysbus_error(0, stat32 & 0x37c, error_found, handle_error); 563 sysbus_error(0, stat32 & 0x378, error_found, handle_error);
564 564
565 if(error32 & 0x083) 565 if(error32 & 0x087)
566 sysbus_error(1, error32 & 0x083, error_found, handle_error); 566 sysbus_error(1, error32 & 0x087, error_found, handle_error);
567 567
568 if(error32 & 0x37c) 568 if(error32 & 0x378)
569 sysbus_error(0, error32 & 0x37c, error_found, handle_error); 569 sysbus_error(0, error32 & 0x378, error_found, handle_error);
570} 570}
571 571
572static void e752x_check_membuf (struct e752x_error_info *info, 572static void e752x_check_membuf (struct e752x_error_info *info,