mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 13:30:55 +07:00
[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>
This commit is contained in:
parent
42265940ed
commit
39e73fc10e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user