]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: Add a NAND_NO_BBM_QUIRK flag
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 11 May 2020 06:49:15 +0000 (08:49 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:43 +0000 (09:51 +0200)
commit53378ce10b395b95e579ee7ab5ba9abb2be042ce
treec559f53d8f70301f64b198d22294f2937733faf6
parentadc322b69bfe1a1bc29468fae53ab4f7b1a33c85
mtd: rawnand: Add a NAND_NO_BBM_QUIRK flag

Some controllers with embedded ECC engines override the BBM marker with
data or ECC bytes, thus making bad block detection through bad block
marker impossible. Let's flag those chips so the core knows it shouldn't
check the BBM and consider all blocks good.

This should allow us to get rid of two implementers of the
legacy.block_bad() hook.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200511064917.6255-1-boris.brezillon@collabora.com
drivers/mtd/nand/raw/nand_base.c
include/linux/mtd/rawnand.h