]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: Introduce an expert mode for forensics and debugging purposes
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 18 Nov 2021 11:46:59 +0000 (12:46 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 9 Dec 2021 16:51:59 +0000 (17:51 +0100)
commit0c62feeb77041272c4189a59f71b5491f3deddb9
tree7e14f4a0ffe941e5e1dbf883869ed55f0e608f0c
parent843b35be8fc1d79942c08e45ff94ac7695283585
mtd: Introduce an expert mode for forensics and debugging purposes

When developping NAND controller drivers or when debugging filesystem
corruptions, it is quite common to need hacking locally into the
MTD/NAND core in order to get access to the content of the bad
blocks. Instead of having multiple implementations out there let's
provide a simple yet effective specific MTD-wide debugfs entry to fully
disable these checks on purpose.

A warning is added to inform the user when this mode gets enabled.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20211118114659.1282855-1-miquel.raynal@bootlin.com
drivers/mtd/mtdcore.c
drivers/mtd/nand/core.c
drivers/mtd/nand/raw/nand_base.c
drivers/mtd/nand/raw/nand_bbt.c
include/linux/mtd/mtd.h