mtd: nandbiterrs: Support for NAND biterrors test on platforms without raw write

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Aug 1 18:59:06 PDT 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=97b671315ec2f4f83bf0c397780692badd713fcf
Commit:     97b671315ec2f4f83bf0c397780692badd713fcf
Parent:     03b1d11a998b70df2ca699a9b9fb8ab5b0746d43
Author:     Iwo Mergler <Iwo.Mergler at netcommwireless.com>
AuthorDate: Wed May 11 16:54:57 2016 +1000
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon Jul 11 08:40:13 2016 +0200

    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 at netcommwireless.com>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 drivers/mtd/tests/nandbiterrs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/tests/nandbiterrs.c b/drivers/mtd/tests/nandbiterrs.c
index 09a4cca..f26dec8 100644
--- a/drivers/mtd/tests/nandbiterrs.c
+++ b/drivers/mtd/tests/nandbiterrs.c
@@ -290,7 +290,7 @@ static int overwrite_test(void)
 
 	while (opno < max_overwrite) {
 
-		err = rewrite_page(0);
+		err = write_page(0);
 		if (err)
 			break;
 



More information about the linux-mtd-cvs mailing list