ubi: Reject MLC NAND
authorRichard Weinberger <richard@nod.at>
Sat, 3 Mar 2018 10:45:54 +0000 (11:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:34:09 +0000 (09:34 +0200)
commitc64c4c81aed52fc84be225ce47863a41eb4f7bb6
treeaf2586a77b8a2df84dc5a5855e88ea469c713e46
parent434a1dd2c0e4f6af3fa4ca9cc3e88bbf07b8f41c
ubi: Reject MLC NAND

commit b5094b7f135be34630e3ea8a98fa215715d0f29d upstream.

While UBI and UBIFS seem to work at first sight with MLC NAND, you will
most likely lose all your data upon a power-cut or due to read/write
disturb.
In order to protect users from bad surprises, refuse to attach to MLC
NAND.

Cc: stable@vger.kernel.org
Signed-off-by: Richard Weinberger <richard@nod.at>
Acked-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Artem Bityutskiy <dedekind1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/build.c