Skip to contentSkip to conversation

MTD: nandsim: bugfix in initialization

PATCH New Artem Bityutskiy 1 participant 1 message Sep 19, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MTD: nandsim: bugfix in initialization

From: Artem Bityutskiy <[email protected]>
Reply-To: [email protected]
To: David Woodhouse <[email protected]>
Cc: bhsong <[email protected]>
Subject: [PATCH] MTD: nandsim: bugfix in initialization
Date: Wed, 19 Sep 2007 16:23:22 +0300

From: Artem Bityutskiy <[email protected]>
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.

---
 drivers/mtd/nand/nandsim.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/nandsim.c +1 -1
index 0b1823c..9685f8a 100644
@@ -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 {
Signature · 5 lines
1.5.0.6

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)