Patchwork [v2,06/27] mtd: nand: pxa3xx: Prevent sub-page writes

login
register
mail settings
Submitter Ezequiel Garcia
Date Oct. 18, 2013, 11:02 p.m.
Message ID <1382137374-21251-7-git-send-email-ezequiel.garcia@free-electrons.com>
Download mbox | patch
Permalink /patch/284803/
State Accepted
Commit 664c7f5e81df12b5cac873a25fa9ac9cc90c13c3
Headers show

Comments

Ezequiel Garcia - Oct. 18, 2013, 11:02 p.m.
The current driver doesn't support sub-page writing, so report
that to the NAND core.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
---
 drivers/mtd/nand/pxa3xx_nand.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c
index aa75adf..5ca3154 100644
--- a/drivers/mtd/nand/pxa3xx_nand.c
+++ b/drivers/mtd/nand/pxa3xx_nand.c
@@ -1143,6 +1143,7 @@  static int alloc_nand_resource(struct platform_device *pdev)
 		chip->read_byte		= pxa3xx_nand_read_byte;
 		chip->read_buf		= pxa3xx_nand_read_buf;
 		chip->write_buf		= pxa3xx_nand_write_buf;
+		chip->options		|= NAND_NO_SUBPAGE_WRITE;
 	}
 
 	spin_lock_init(&chip->controller->lock);