MTD: nandsim: bugfix in initialization
Subsystems (2)
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.
Reported-by bhsong <[email protected]>
Signed-off-by Artem Bityutskiy <[email protected]>
--- drivers/mtd/nand/nandsim.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/nandsim.c +1 -1
@@ -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 (Битюцкий Артём)