mtd: rawnand: meson: set oob layout ops
Specify the oob layout operation to avoid no oob scheme defined for
some nand flash.
Fixes: 8fae856c53
("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
Signed-off-by: Liang Yang <liang.yang@amlogic.com>
Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:
parent
6f0ce4dfc5
commit
d090c25028
|
@ -1188,6 +1188,8 @@ static int meson_nand_attach_chip(struct nand_chip *nand)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
mtd_set_ooblayout(mtd, &meson_ooblayout_ops);
|
||||
|
||||
ret = meson_nand_bch_mode(nand);
|
||||
if (ret)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in New Issue