Skip to content
Commit 5671842f authored by Zach Brown's avatar Zach Brown Committed by Brian Norris
Browse files

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: default avatarJeff Westfahl <jeff.westfahl@ni.com>
Signed-off-by: default avatarZach Brown <zach.brown@ni.com>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electron.com>
Acked-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent ceb374eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment