提交 4a0c50c0 编写于 作者: A Artem Bityutskiy 提交者: David Woodhouse

[MTD] nandsim: bugfix in page addressing

Number of address bytes for 64-128 MiB NANDs is 4, not 5.
Signed-off-by: NArtem Bityutskiy <dedekind@infradead.org>
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 418b2e56
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册