[PATCH] MTD: nandsim: bugfix in initialization
Artem Bityutskiy
dedekind at infradead.org
Wed Sep 19 09:46:35 EDT 2007
From: Artem Bityutskiy <dedekind at infradead.org>
Reply-To: dedekind at infradead.org
To: David Woodhouse <dwmw2 at infradead.org>
Cc: bhsong <bhsong at augustatek.com>
Subject: [PATCH] MTD: nandsim: bugfix in initialization
Date: Wed, 19 Sep 2007 16:23:22 +0300
From: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Date: Wed, 19 Sep 2007 17:56:47 +0300
Subject: [PATCH] MTD: nandsim: bugfix in initialization
NAND of > 32MiB in size use 4 bytes in address cycle, not 3.
Reported-by: bhsong <bhsong at augustatek.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
drivers/mtd/nand/nandsim.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
index 0b1823c..9685f8a 100644
--- a/drivers/mtd/nand/nandsim.c
+++ b/drivers/mtd/nand/nandsim.c
@@ -511,7 +511,7 @@ static int init_nandsim(struct mtd_info *mtd)
}
if (ns->options & OPT_SMALLPAGE) {
- if (ns->geom.totsz < (64 << 20)) {
+ if (ns->geom.totsz < (32 << 20)) {
ns->geom.pgaddrbytes = 3;
ns->geom.secaddrbytes = 2;
} else {
--
1.5.0.6
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list