mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 15:20:41 +00:00
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>
This commit is contained in:
parent
c5f99677a4
commit
664c7f5e81
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue