mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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]>
This commit is contained in:
parent
b298cecb3d
commit
55e5750b3e
1 changed files with 1 additions and 1 deletions
|
|
@ -674,7 +674,7 @@ static void mpc85xx_mc_check(struct mem_ctl_info *mci)
|
|||
int row_index;
|
||||
|
||||
err_detect = in_be32(pdata->mc_vbase + MPC85XX_MC_ERR_DETECT);
|
||||
if (err_detect)
|
||||
if (!err_detect)
|
||||
return;
|
||||
|
||||
mpc85xx_mc_printk(mci, KERN_ERR, "Err Detect Register: %#8.8x\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue