[PATCH 1/3] mtd: abi: Introduce MTD_NO_MULTI_PASS_WRITE
Pratyush Yadav
p.yadav at ti.com
Mon Oct 12 14:04:02 EDT 2020
Some flashes like the Semper S28 family do not support multi-pass page
programming. Introduce the flag MTD_NO_MULTI_PASS_WRITE to allow telling
upper layers this information so they can issue write commands with this
limitation in mind.
Signed-off-by: Pratyush Yadav <p.yadav at ti.com>
---
include/uapi/mtd/mtd-abi.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/uapi/mtd/mtd-abi.h b/include/uapi/mtd/mtd-abi.h
index 65b9db936557..a2cab30adac5 100644
--- a/include/uapi/mtd/mtd-abi.h
+++ b/include/uapi/mtd/mtd-abi.h
@@ -105,6 +105,7 @@ struct mtd_write_req {
#define MTD_NO_ERASE 0x1000 /* No erase necessary */
#define MTD_POWERUP_LOCK 0x2000 /* Always locked after reset */
#define MTD_SLC_ON_MLC_EMULATION 0x4000 /* Emulate SLC behavior on MLC NANDs */
+#define MTD_NO_MULTI_PASS_WRITE 0x8000
/* Some common devices / combinations of capabilities */
#define MTD_CAP_ROM 0
--
2.28.0
More information about the linux-mtd
mailing list