summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
authorIwo Mergler <Iwo.Mergler@netcommwireless.com>2016-05-11 16:54:57 +1000
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-07-11 08:40:13 +0200
commit97b671315ec2f4f83bf0c397780692badd713fcf (patch)
tree6438460fa016fdd5484617c6f4307f906d41acd8 /drivers/mtd/tests
parent03b1d11a998b70df2ca699a9b9fb8ab5b0746d43 (diff)
downloadlwn-97b671315ec2f4f83bf0c397780692badd713fcf.tar.gz
lwn-97b671315ec2f4f83bf0c397780692badd713fcf.zip
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>
Diffstat (limited to 'drivers/mtd/tests')
-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)
while (opno < max_overwrite) {
- err = rewrite_page(0);
+ err = write_page(0);
if (err)
break;