UBI: allow specifying bad PEBs limit using module parameter
authorRichard Genoud <richard.genoud@gmail.com>
Mon, 20 Aug 2012 16:00:14 +0000 (18:00 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Sep 2012 06:39:01 +0000 (09:39 +0300)
commitedac493dfb48fe46d43fe6afabb8cfb2d1d4c048
tree6652e8b2f92504fbe69566e59df982099507de4c
parentd2f588f9340ed23dfb6cda08b8a1917ef3e8527c
UBI: allow specifying bad PEBs limit using module parameter

This patch provides the possibility to adjust the "maximum expected number of
bad blocks per 1024 blocks" (max_beb_per1024) for each mtd device.

The majority of NAND devices have their max_beb_per1024 equal to 20, but
sometimes it's more.
Now, we can adjust that via a kernel parameter:
ubi.mtd=<name|num|path>[,<vid_hdr_offs>[,max_beb_per1024]]

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/Kconfig
drivers/mtd/ubi/build.c