[PATCH] mtd: nand: mxc_nand: disable subpage reads
Sascha Hauer
s.hauer at pengutronix.de
Tue Apr 16 23:51:40 PDT 2024
The NAND core enabled subpage reads when a largepage NAND is used with
SOFT_ECC. The i.MX NAND controller doesn't support subpage reads, so
clear the flag again.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/mtd/nand/raw/mxc_nand.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index 46f8bb2406..2774b6bb4f 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -1708,6 +1708,8 @@ static int mxcnd_probe(struct device *dev)
if (err)
goto escan;
+ this->options &= ~NAND_SUBPAGE_READ;
+
if ((this->bbt_options & NAND_BBT_USE_FLASH) &&
this->bbt_td->pages[0] == -1 && this->bbt_md->pages[0] == -1) {
dev_info(dev, "no BBT found. creating one\n");
--
2.39.2
More information about the barebox
mailing list