base-files: define yes/no as valid boolean options
[openwrt.git] / target / linux / mvebu / patches-3.10 / 0139-mtd-nand-pxa3xx-Add-a-nice-comment-to-pxa3xx_set_dat.patch
1 From 8bce53e42f78e009fbfbd4a98ea98f66e6cd5b4c Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Thu, 7 Nov 2013 12:17:18 -0300
4 Subject: [PATCH 139/203] mtd: nand: pxa3xx: Add a nice comment to
5  pxa3xx_set_datasize()
6
7 Add a comment clarifying the use of pxa3xx_set_datasize() which is only
8 applicable on data read/write commands (i.e. commands with a data cycle,
9 such as READID, READ0, STATUS, etc.)
10
11 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
12 Signed-off-by: Brian Norris <computersforpeace@gmail.com>
13 ---
14  drivers/mtd/nand/pxa3xx_nand.c | 5 +++++
15  1 file changed, 5 insertions(+)
16
17 --- a/drivers/mtd/nand/pxa3xx_nand.c
18 +++ b/drivers/mtd/nand/pxa3xx_nand.c
19 @@ -304,6 +304,11 @@ static void pxa3xx_nand_set_timing(struc
20         nand_writel(info, NDTR1CS0, ndtr1);
21  }
22  
23 +/*
24 + * Set the data and OOB size, depending on the selected
25 + * spare and ECC configuration.
26 + * Only applicable to READ0, READOOB and PAGEPROG commands.
27 + */
28  static void pxa3xx_set_datasize(struct pxa3xx_nand_info *info)
29  {
30         int oob_enable = info->reg_ndcr & NDCR_SPARE_EN;