提交 39e73fc1 编写于 作者: A Artem Bityutskiy 提交者: David Woodhouse

[MTD] [NAND] nandsim: bugfix in initialization

NAND of > 32MiB in size use 4 bytes in address cycle, not 3.
Reported-by: Nbhsong <bhsong@augustatek.com>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 42265940
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册