mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue