aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIwo Mergler <Iwo.Mergler@netcommwireless.com>2016-05-11 02:54:57 -0400
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-07-11 02:40:13 -0400
commit97b671315ec2f4f83bf0c397780692badd713fcf (patch)
tree6438460fa016fdd5484617c6f4307f906d41acd8
parent03b1d11a998b70df2ca699a9b9fb8ab5b0746d43 (diff)
mtd: nandbiterrs: Support for NAND biterrors test on platforms without raw write
Support for NAND biterrors test on platforms without raw write While the default test mode relies on raw write (mtd_write_oob) to introduce bit errors into a page, the rewrite test mode doesn't need it. Changed the overwrite test to use normal writes. The default test mode is unaffected and still requires raw write as before. Signed-off-by: Iwo Mergler <Iwo.Mergler@netcommwireless.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
-rw-r--r--drivers/mtd/tests/nandbiterrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/nandbiterrs.c b/drivers/mtd/tests/nandbiterrs.c
index 09a4ccac53a2..f26dec896afa 100644
--- a/drivers/mtd/tests/nandbiterrs.c
+++ b/drivers/mtd/tests/nandbiterrs.c
@@ -290,7 +290,7 @@ static int overwrite_test(void)
290 290
291 while (opno < max_overwrite) { 291 while (opno < max_overwrite) {
292 292
293 err = rewrite_page(0); 293 err = write_page(0);
294 if (err) 294 if (err)
295 break; 295 break;
296 296