ubi: Reject MLC NAND
authorRichard Weinberger <richard@nod.at>
Sat, 3 Mar 2018 10:45:54 +0000 (11:45 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 4 Apr 2018 21:48:11 +0000 (23:48 +0200)
commitb5094b7f135be34630e3ea8a98fa215715d0f29d
treebe3e766fbb41221942f50e9bbebc710a91d5d3b3
parent4fb1cd82302e2aa87bb4876d67f3ed679f1f4a04
ubi: Reject MLC NAND

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>
drivers/mtd/ubi/build.c