UBI: make self-checks dynamic
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 14 Mar 2011 16:17:40 +0000 (18:17 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 16 Mar 2011 11:50:16 +0000 (13:50 +0200)
commit92d124f5314913a21f7fa98b22ee457dab171edd
tree8a8c187f12290424419f0a05caeb202cd73253cc
parentb342efd4a49cef9cf1a260c1814aad97722f38f8
UBI: make self-checks dynamic

This patch adds a possibility to dynamically switch UBI self-checks
on and off, instead of toggling them compile-time from the configuration
menu. This is much more flexible, and consistent with UBIFS, and this
also simplifies UBI Kconfig menu and the code.

This patch introduces two levels of self-checks - general, which
includes all self-checks which are relatively fast, and I/O, which
includes write-verify checks and erase-verify checks, which are
relatively slow and involve flash I/O.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/Kconfig.debug
drivers/mtd/ubi/debug.c
drivers/mtd/ubi/debug.h
drivers/mtd/ubi/io.c
drivers/mtd/ubi/scan.c
drivers/mtd/ubi/vmt.c
drivers/mtd/ubi/vtbl.c
drivers/mtd/ubi/wl.c