projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
422928a
)
mtd: partitions: ofpart: Parse the slc-mode property
author
Boris Brezillon
<bbrezillon@kernel.org>
Sun, 3 May 2020 15:53:39 +0000
(17:53 +0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:42 +0000
(09:51 +0200)
Parse the slc-mode property and set the MTD_MLC_IN_SLC_MODE flag
when present.
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20200503155341.16712-7-miquel.raynal@bootlin.com
drivers/mtd/parsers/ofpart.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/parsers/ofpart.c
b/drivers/mtd/parsers/ofpart.c
index
3caeabf
..
daf507c
100644
(file)
--- a/
drivers/mtd/parsers/ofpart.c
+++ b/
drivers/mtd/parsers/ofpart.c
@@
-117,6
+117,9
@@
static int parse_fixed_partitions(struct mtd_info *master,
if (of_get_property(pp, "lock", &len))
parts[i].mask_flags |= MTD_POWERUP_LOCK;
+ if (of_property_read_bool(pp, "slc-mode"))
+ parts[i].add_flags |= MTD_SLC_ON_MLC_EMULATION;
+
i++;
}