]> asedeno.scripts.mit.edu Git - linux.git/commit
mtd: ubi: Use 'max_bad_blocks' to compute bad_peb_limit if available
authorJeff Westfahl <jeff.westfahl@ni.com>
Tue, 10 Jan 2017 19:30:18 +0000 (13:30 -0600)
committerRichard Weinberger <richard@nod.at>
Wed, 17 Jan 2018 18:28:54 +0000 (19:28 +0100)
commitc0e860ba034ead2a0f47052c87266e90f23cdb7b
treebb83344c79c920b5d0d7b28f2aab78ed23ea6ad1
parentc877154d307f4a91e0b5b85b75535713dab945ae
mtd: ubi: Use 'max_bad_blocks' to compute bad_peb_limit if available

If the user has not set max_beb_per1024 using either the cmdline or
Kconfig options for doing so, use the MTD function 'max_bad_blocks' to
compute the UBI bad_peb_limit.

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: Richard Weinberger <richard@nod.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/build.c