Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39e73fc1 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by David Woodhouse
Browse files

[MTD] [NAND] nandsim: bugfix in initialization



NAND of > 32MiB in size use 4 bytes in address cycle, not 3.

Reported-by: default avatarbhsong <bhsong@augustatek.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 42265940
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {