Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MTD] [NAND] 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>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

authored by

Artem Bityutskiy and committed by
David Woodhouse
39e73fc1 42265940

+1 -1
+1 -1
drivers/mtd/nand/nandsim.c
··· 511 511 } 512 512 513 513 if (ns->options & OPT_SMALLPAGE) { 514 - if (ns->geom.totsz < (64 << 20)) { 514 + if (ns->geom.totsz < (32 << 20)) { 515 515 ns->geom.pgaddrbytes = 3; 516 516 ns->geom.secaddrbytes = 2; 517 517 } else {