]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: implement 'max_bad_blocks' mtd function
authorZach Brown <zach.brown@ni.com>
Tue, 10 Jan 2017 19:30:20 +0000 (13:30 -0600)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 8 Feb 2017 22:19:43 +0000 (14:19 -0800)
commit5671842fced7aee1550194f743947953a2f8a27c
tree4cce0d1e4d5648b2363ab9c96c6c26bf7f1d1377
parentceb374eb06848212e47fb884964a3ae5e79615b5
mtd: nand: implement 'max_bad_blocks' mtd function

Implement the new mtd function 'max_bad_blocks'. Using the chip's
max_bb_per_die and blocks_per_die fields to determine the maximum bad
blocks to reserve for an MTD.

Signed-off-by: Jeff Westfahl <jeff.westfahl@ni.com>
Signed-off-by: Zach Brown <zach.brown@ni.com>
Acked-by: Boris Brezillon <boris.brezillon@free-electron.com>
Acked-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c