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

Commit 4a0c50c0 authored by Artem Bityutskiy's avatar Artem Bityutskiy Committed by David Woodhouse
Browse files

[MTD] nandsim: bugfix in page addressing



Number of address bytes for 64-128 MiB NANDs is 4, not 5.

Signed-off-by: default avatarArtem Bityutskiy <dedekind@infradead.org>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 418b2e56
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -440,7 +440,7 @@ static int init_nandsim(struct mtd_info *mtd)
		}
	} else {
		if (ns->geom.totsz <= (128 << 20)) {
			ns->geom.pgaddrbytes  = 5;
			ns->geom.pgaddrbytes  = 4;
			ns->geom.secaddrbytes = 2;
		} else {
			ns->geom.pgaddrbytes  = 5;