projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b330f6
)
i7300_edac: Fix MTR x4/x8 detection logic
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Fri, 27 Aug 2010 14:20:38 +0000
(11:20 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 30 Aug 2010 17:56:58 +0000
(14:56 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7300_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/i7300_edac.c
b/drivers/edac/i7300_edac.c
index 218d463fb1a8b7357a162479c02eadfa9e550768..a4f47fda078dba991ed5e5db4cbcdb881c667718 100644
(file)
--- a/
drivers/edac/i7300_edac.c
+++ b/
drivers/edac/i7300_edac.c
@@
-583,14
+583,14
@@
static int decode_mtr(struct i7300_pvt *pvt,
debugf2("\t\tECC code is 8-byte-over-32-byte SECDED+ code\n");
} else {
debugf2("\t\tECC code is on Lockstep mode\n");
- if (MTR_DRAM_WIDTH(mtr))
+ if (MTR_DRAM_WIDTH(mtr)
== 8
)
p_csrow->edac_mode = EDAC_S8ECD8ED;
else
p_csrow->edac_mode = EDAC_S4ECD4ED;
}
/* ask what device type on this row */
- if (MTR_DRAM_WIDTH(mtr)) {
+ if (MTR_DRAM_WIDTH(mtr)
== 8
) {
debugf2("\t\tScrub algorithm for x8 is on %s mode\n",
IS_SCRBALGO_ENHANCED(pvt->mc_settings) ?
"enhanced" : "normal");