summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kurbanov <mmkurbanov@salutedevices.com>2025-04-17 16:15:24 +0300
committerDmitry Rokosov <rockosov@rulkc.org>2026-08-13 14:41:33 +0300
commit4a4c1115f1c5d62d5ef38178e1d8ea8ac656f478 (patch)
treefef4d6d72236522f6dd1a00df09bd1e655c91c32
parent2b98829558ed51b1d0a92dda01e3f799c8ad1b5d (diff)
downloadlinux-4a4c1115f1c5d62d5ef38178e1d8ea8ac656f478.tar.gz
linux-4a4c1115f1c5d62d5ef38178e1d8ea8ac656f478.zip
mtd: spinand: esmt: enable ECC for read/write OTP
U-Boot for ESMT driver reads from OTP with ECC enabled. Enable ECC for OTP reads/writes to ensure consistent behaviour across devices and improve data reliability. Signed-off-by: Martin Kurbanov <mmkurbanov@salutedevices.com> Signed-off-by: Dmitry Rokosov <rockosov@rulkc.org>
-rw-r--r--drivers/mtd/nand/spi/esmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/spi/esmt.c b/drivers/mtd/nand/spi/esmt.c
index 6f2e54b5862d..89216e70aa86 100644
--- a/drivers/mtd/nand/spi/esmt.c
+++ b/drivers/mtd/nand/spi/esmt.c
@@ -194,7 +194,7 @@ static int f50l1g41lb_otp_rw(struct spinand_device *spinand, loff_t ofs,
req.dataoffs = do_div(page, otp_pagesize);
req.pos.page = page + ESMT_F50L1G41LB_USER_OTP_START_PAGE;
req.type = is_write ? NAND_PAGE_WRITE : NAND_PAGE_READ;
- req.mode = MTD_OPS_RAW;
+ req.mode = MTD_OPS_PLACE_OOB;
req.databuf.in = buf;
while (copied < len) {