diff options
author | Ezequiel Garcia | 2013-11-07 12:17:12 -0300 |
---|---|---|
committer | Brian Norris | 2014-01-03 11:22:10 -0800 |
commit | 664c7f5e81df12b5cac873a25fa9ac9cc90c13c3 (patch) | |
tree | 72f0cd12d23fbd4fc6ae0575d5e6ff51171501dd /drivers | |
parent | c5f99677a4cdfbc63b3944cb897dd5a8ab2e19ea (diff) |
mtd: nand: pxa3xx: Prevent sub-page writes
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>
Tested-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/nand/pxa3xx_nand.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/pxa3xx_nand.c b/drivers/mtd/nand/pxa3xx_nand.c index f7c004d7cf4f..c10cb06884f9 100644 --- a/drivers/mtd/nand/pxa3xx_nand.c +++ b/drivers/mtd/nand/pxa3xx_nand.c @@ -1145,6 +1145,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); |