aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-08-27 10:20:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-30 13:56:58 -0400
commit28c2ce7c8b275a8e6950bacb2dbad70b36a2996b (patch)
treeca4941376076fd7245894285e5c74b287f32b691 /drivers/edac
parent3b330f67581db4f5301438cc0d9499f13314542d (diff)
i7300_edac: Fix MTR x4/x8 detection logic
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/i7300_edac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/i7300_edac.c b/drivers/edac/i7300_edac.c
index 218d463fb1a..a4f47fda078 100644
--- a/drivers/edac/i7300_edac.c
+++ b/drivers/edac/i7300_edac.c
@@ -583,14 +583,14 @@ static int decode_mtr(struct i7300_pvt *pvt,
583 debugf2("\t\tECC code is 8-byte-over-32-byte SECDED+ code\n"); 583 debugf2("\t\tECC code is 8-byte-over-32-byte SECDED+ code\n");
584 } else { 584 } else {
585 debugf2("\t\tECC code is on Lockstep mode\n"); 585 debugf2("\t\tECC code is on Lockstep mode\n");
586 if (MTR_DRAM_WIDTH(mtr)) 586 if (MTR_DRAM_WIDTH(mtr) == 8)
587 p_csrow->edac_mode = EDAC_S8ECD8ED; 587 p_csrow->edac_mode = EDAC_S8ECD8ED;
588 else 588 else
589 p_csrow->edac_mode = EDAC_S4ECD4ED; 589 p_csrow->edac_mode = EDAC_S4ECD4ED;
590 } 590 }
591 591
592 /* ask what device type on this row */ 592 /* ask what device type on this row */
593 if (MTR_DRAM_WIDTH(mtr)) { 593 if (MTR_DRAM_WIDTH(mtr) == 8) {
594 debugf2("\t\tScrub algorithm for x8 is on %s mode\n", 594 debugf2("\t\tScrub algorithm for x8 is on %s mode\n",
595 IS_SCRBALGO_ENHANCED(pvt->mc_settings) ? 595 IS_SCRBALGO_ENHANCED(pvt->mc_settings) ?
596 "enhanced" : "normal"); 596 "enhanced" : "normal");