linux_dsm_epyc7002/drivers/mtd/nand/gpmi-nand
Brian Norris 5a0edb251a mtd: nand: refactor chip->block_markbad interface
The chip->block_markbad pointer should really only be responsible for
writing a bad block marker for new bad blocks. It should not take care
of BBT-related functionality, nor should it handle bookkeeping of bad
block stats.

This patch refactors the 3 users of the block_markbad interface (plus
the default nand_base implementation) so that the common code is kept in
nand_block_markbad_lowlevel(). It removes some inconsistencies between
the various implementations and should allow for more centralized
improvements in the future.

Because gpmi-nand no longer needs the nand_update_bbt() function, let's
stop exporting it as well.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Huang Shijie <b32955@freescale.com> (for gpmi-nand parts)
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2013-08-30 16:47:52 +01:00
..
bch-regs.h mtd: gpmi: set the Golois Field bit for mx6q's BCH 2013-02-04 10:27:59 +02:00
gpmi-lib.c mtd: gpmi: set the Golois Field bit for mx6q's BCH 2013-02-04 10:27:59 +02:00
gpmi-nand.c mtd: nand: refactor chip->block_markbad interface 2013-08-30 16:47:52 +01:00
gpmi-nand.h mtd: gpmi: move to use generic DMA helper 2013-04-04 21:22:45 +08:00
gpmi-regs.h mtd: gpmi: add a new field for HW_GPMI_CTRL1 2012-09-29 15:55:18 +01:00
Makefile mtd: add GPMI-NAND driver in the config and Makefile 2011-09-11 15:02:18 +03:00