summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiang Yang <liang.yang@amlogic.com>2019-03-21 20:14:01 +0800
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-04-08 10:21:08 +0200
commitd090c25028e9df186bb0d31379f7d5605c57fa79 (patch)
tree67cf1805fe95e3dfc30aaca8631bb4232ee90078
parent6f0ce4dfc5a35bcb21f26d5347f4797fdde52810 (diff)
mtd: rawnand: meson: set oob layout ops
Specify the oob layout operation to avoid no oob scheme defined for some nand flash. Fixes: 8fae856c5350 ("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>
-rw-r--r--drivers/mtd/nand/raw/meson_nand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c
index 38db4fd61459..cb0b03e36a35 100644
--- a/drivers/mtd/nand/raw/meson_nand.c
+++ b/drivers/mtd/nand/raw/meson_nand.c
@@ -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;