Skip to content
Snippets Groups Projects
Commit c0e860ba authored by Jeff Westfahl's avatar Jeff Westfahl Committed by Richard Weinberger
Browse files

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: 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 avatarRichard Weinberger <richard@nod.at>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent c877154d
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment