]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ubi: Relax the 'no MLC' rule and allow MLCs operating in SLC mode
authorBoris Brezillon <bbrezillon@kernel.org>
Sun, 3 May 2020 15:53:41 +0000 (17:53 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:42 +0000 (09:51 +0200)
commit66aaba3a07cb8e53878bbeabe54660a646b55a34
tree6643470b3c9aa1ef9733548b5c0bfc1d51d426a8
parent568d841b6837fc2bb5c45d6f3e56b65ffb5ecac2
ubi: Relax the 'no MLC' rule and allow MLCs operating in SLC mode

The MTD layer provides an SLC mode (purely software emulation of SLC
behavior) addressing the paired-pages corruption issue, which was the
main reason for refusing attaching MLC NANDs to UBI.

Relax this rule and allow partitions that have the
MTD_EMULATE_SLC_ON_MLC flag set to be attached.

Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Acked-by: Richard Weinberger <richard@nod.at>
Link: https://lore.kernel.org/linux-mtd/20200503155341.16712-9-miquel.raynal@bootlin.com
drivers/mtd/ubi/build.c