base-files: define yes/no as valid boolean options
[openwrt.git] / target / linux / mvebu / patches-3.10 / 0133-mtd-nand-pxa3xx-Prevent-sub-page-writes.patch
1 From ec1977c2873dc7f0e6cec3edb8c30d92882f65d1 Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Thu, 7 Nov 2013 12:17:12 -0300
4 Subject: [PATCH 133/203] mtd: nand: pxa3xx: Prevent sub-page writes
5
6 The current driver doesn't support sub-page writing, so report
7 that to the NAND core.
8
9 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
10 Tested-by: Daniel Mack <zonque@gmail.com>
11 Signed-off-by: Brian Norris <computersforpeace@gmail.com>
12 ---
13  drivers/mtd/nand/pxa3xx_nand.c | 1 +
14  1 file changed, 1 insertion(+)
15
16 --- a/drivers/mtd/nand/pxa3xx_nand.c
17 +++ b/drivers/mtd/nand/pxa3xx_nand.c
18 @@ -1145,6 +1145,7 @@ static int alloc_nand_resource(struct pl
19                 chip->read_byte         = pxa3xx_nand_read_byte;
20                 chip->read_buf          = pxa3xx_nand_read_buf;
21                 chip->write_buf         = pxa3xx_nand_write_buf;
22 +               chip->options           |= NAND_NO_SUBPAGE_WRITE;
23         }
24  
25         spin_lock_init(&chip->controller->lock);