linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mtd: nand: allow force erasing of bad blocks through debugfs entry
@ 2017-05-20 15:24 Mario J. Rugiero
  2017-05-20 15:24 ` [PATCH 1/3] mtd: create per-device and module-scope debugfs entries Mario J. Rugiero
  0 siblings, 1 reply; 11+ messages in thread
From: Mario J. Rugiero @ 2017-05-20 15:24 UTC (permalink / raw)
  To: linux-mtd
  Cc: computersforpeace, boris.brezillon, marek.vasut, richard,
	cyrille.pitchen, Mario J. Rugiero

Some manufacturers use different layouts than MTD for the NAND, creating
incompatibilities when going from a vendor-specific kernel to mainline.
In particular, NAND devices for AllWinner boards write non-FF values to
the bad block marker, and thus false positives arise when detecting bad
blocks with the MTD driver. Sometimes there are enough false positives
to make the device unusable.
A proposed solution is NAND scrubbing, something a user who knows what
she's doing (TM) could do to avoid this. It consists in erasing blocks
disregarding the BBM. Since the user must know what she's doing, the
only way to enable this feature is through a per-chip debugfs entry.

Mario J. Rugiero (3):
  mtd: create per-device and module-scope debugfs entries
  mtd: nand: create a wrapper for mtd_device_register for NAND specific
    initialization.
  mtd: nand: add option to ignore bad blocks when erasing, opt-in
    through debugfs

 drivers/mtd/mtdcore.c                    | 17 ++++++++++++
 drivers/mtd/mtdcore.h                    |  2 ++
 drivers/mtd/nand/ams-delta.c             |  2 +-
 drivers/mtd/nand/atmel/nand-controller.c |  2 +-
 drivers/mtd/nand/au1550nd.c              |  2 +-
 drivers/mtd/nand/bf5xx_nand.c            |  2 +-
 drivers/mtd/nand/brcmnand/brcmnand.c     |  2 +-
 drivers/mtd/nand/davinci_nand.c          |  2 +-
 drivers/mtd/nand/denali.c                |  2 +-
 drivers/mtd/nand/diskonchip.c            |  4 +--
 drivers/mtd/nand/fsl_upm.c               |  2 +-
 drivers/mtd/nand/fsmc_nand.c             |  2 +-
 drivers/mtd/nand/gpio.c                  |  2 +-
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c   |  2 +-
 drivers/mtd/nand/hisi504_nand.c          |  2 +-
 drivers/mtd/nand/jz4780_nand.c           |  2 +-
 drivers/mtd/nand/lpc32xx_mlc.c           |  2 +-
 drivers/mtd/nand/lpc32xx_slc.c           |  2 +-
 drivers/mtd/nand/mpc5121_nfc.c           |  2 +-
 drivers/mtd/nand/nand_base.c             | 45 +++++++++++++++++++++++++++++---
 drivers/mtd/nand/nandsim.c               |  2 +-
 drivers/mtd/nand/ndfc.c                  |  2 +-
 drivers/mtd/nand/nuc900_nand.c           |  2 +-
 drivers/mtd/nand/omap2.c                 |  4 +--
 drivers/mtd/nand/orion_nand.c            |  2 +-
 drivers/mtd/nand/oxnas_nand.c            |  2 +-
 drivers/mtd/nand/pasemi_nand.c           |  2 +-
 drivers/mtd/nand/pxa3xx_nand.c           |  2 +-
 drivers/mtd/nand/qcom_nandc.c            |  2 +-
 drivers/mtd/nand/sh_flctl.c              |  2 +-
 drivers/mtd/nand/sm_common.c             |  2 +-
 drivers/mtd/nand/socrates_nand.c         |  2 +-
 drivers/mtd/nand/sunxi_nand.c            |  2 +-
 drivers/mtd/nand/tango_nand.c            |  2 +-
 drivers/mtd/nand/vf610_nfc.c             |  2 +-
 drivers/mtd/nand/xway_nand.c             |  2 +-
 include/linux/mtd/mtd.h                  | 10 +++++++
 include/linux/mtd/nand.h                 | 17 ++++++++++++
 38 files changed, 122 insertions(+), 39 deletions(-)

-- 
2.13.0

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-05-20 17:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-20 15:24 [PATCH 0/3] mtd: nand: allow force erasing of bad blocks through debugfs entry Mario J. Rugiero
2017-05-20 15:24 ` [PATCH 1/3] mtd: create per-device and module-scope debugfs entries Mario J. Rugiero
2017-05-20 15:24   ` [PATCH 2/3] mtd: nand: create a wrapper for mtd_device_register for NAND specific initialization Mario J. Rugiero
2017-05-20 15:24     ` [PATCH 3/3] mtd: nand: add option to ignore bad blocks when erasing, opt-in through debugfs Mario J. Rugiero
2017-05-20 17:54       ` Boris Brezillon
2017-05-20 17:38     ` [PATCH 2/3] mtd: nand: create a wrapper for mtd_device_register for NAND specific initialization Boris Brezillon
2017-05-20 17:44     ` Boris Brezillon
2017-05-20 17:46       ` Boris Brezillon
2017-05-20 17:56     ` Boris Brezillon
2017-05-20 16:21   ` [PATCH 1/3] mtd: create per-device and module-scope debugfs entries Boris Brezillon
2017-05-20 16:41     ` Mario Rugiero

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).