[MTD] OneNAND: Amend write-verify to compare to original buffer
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Thu, 25 Jan 2007 05:06:33 +0000 (14:06 +0900)
committerKyungmin Park <kyungmin.park@samsung.com>
Thu, 25 Jan 2007 05:06:33 +0000 (14:06 +0900)
commit8b29c0b6eb3a4952e7eae03038bbf6c1695dfe80
treee6667249d596585dcf1b86d1639cdd47b13ab8c7
parentec255e34061bbc48fc702875336c6db969df9461
[MTD] OneNAND: Amend write-verify to compare to original buffer

When write-verify is enabled (CONFIG_MTD_ONENAND_VERIFY_WRITE),
the data written is read back and compared.  The comparison
was being made between dataRAM buffers, but this does not
verify that the data made it to the dataRAM correctly in
the first place.  This patch amends write-verify to
compare back to the original buffer.  It also now verifies
sub-page writes.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/mtd/onenand/onenand_base.c