Skip to content

Commit 55e5750

Browse files
Dave Jiangtorvalds
authored andcommitted
edac: ppc mpc85xx fix mc err detect
Error found by Jeff Haran. The error detect register is 0s when no errors are detected. The check code is incorrect, so reverse check sense. Reported-by: Jeff Haran <[email protected]> Signed-off-by: Dave Jiang <[email protected]> Signed-off-by: Doug Thompson <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Acked-by: Kumar Gala <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b298cec commit 55e5750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/mpc85xx_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ static void mpc85xx_mc_check(struct mem_ctl_info *mci)
674674
int row_index;
675675

676676
err_detect = in_be32(pdata->mc_vbase + MPC85XX_MC_ERR_DETECT);
677-
if (err_detect)
677+
if (!err_detect)
678678
return;
679679

680680
mpc85xx_mc_printk(mci, KERN_ERR, "Err Detect Register: %#8.8x\n",

0 commit comments

Comments
 (0)