]> git.baikalelectronics.ru Git - kernel.git/commit
UBI: add write checking
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 25 Jan 2010 15:09:30 +0000 (17:09 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 1 Feb 2010 13:16:37 +0000 (15:16 +0200)
commit1e5217e884aa514eb0443e86c35477613d7facea
treeed2f34b18bb9c9af1b772e25127ec1ea1ce4f2cf
parent7aa23efdd9049a2a9febfe83d3c8db7bc184c365
UBI: add write checking

Add an extra debugging check function which validates writes.
After every write it reads the data back, compares it with the
original data, and complains if they mismatch.

Useful for debugging. No-op if extra debugging checks are disabled.

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