mtd: nandbiterrs: Support for NAND biterrors test on platforms without raw write
authorIwo Mergler <Iwo.Mergler@netcommwireless.com>
Wed, 11 May 2016 06:54:57 +0000 (16:54 +1000)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 11 Jul 2016 06:40:13 +0000 (08:40 +0200)
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>
drivers/mtd/tests/nandbiterrs.c

index 09a4ccac53a2e74dd29aae1c9e8d41baad505609..f26dec896afa87f9667e5afd13f713d4cb5c98d3 100644 (file)
@@ -290,7 +290,7 @@ static int overwrite_test(void)
 
        while (opno < max_overwrite) {
 
-               err = rewrite_page(0);
+               err = write_page(0);
                if (err)
                        break;