* [PATCH] MTD: nandsim: bugfix in initialization
@ 2007-09-19 13:46 Artem Bityutskiy
0 siblings, 0 replies; only message in thread
From: Artem Bityutskiy @ 2007-09-19 13:46 UTC (permalink / raw)
To: linux-mtd
From: Artem Bityutskiy <dedekind@infradead.org>
Reply-To: dedekind@infradead.org
To: David Woodhouse <dwmw2@infradead.org>
Cc: bhsong <bhsong@augustatek.com>
Subject: [PATCH] MTD: nandsim: bugfix in initialization
Date: Wed, 19 Sep 2007 16:23:22 +0300
From: Artem Bityutskiy <Artem.Bityutskiy@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@augustatek.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@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 (Битюцкий Артём)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-09-19 13:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-19 13:46 [PATCH] MTD: nandsim: bugfix in initialization Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox