Skip to content

Commit

Permalink
[MTD] [NAND] nandsim: bugfix in initialization
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Oct 20, 2007
1 parent 4226594 commit 39e73fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/nandsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 39e73fc

Please sign in to comment.