kernel: update linux 3.2 to 3.2.14
[openwrt/staging/yousong.git] / target / linux / xburst / patches-3.2 / 0004-NAND-Add-support-for-subpage-reads-for-NAND_ECC_HW_O.patch
index aab8f04328cb47d3db141633fccb79536c29a3ea..290a66220619c9002efcffbf28ec423837e1aaba 100644 (file)
@@ -9,11 +9,9 @@ Subject: [PATCH 04/21] NAND: Add support for subpage reads for
  include/linux/mtd/nand.h     |    8 ++--
  2 files changed, 79 insertions(+), 7 deletions(-)
 
-diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
-index 184aa93..0131e84 100644
 --- a/drivers/mtd/nand/nand_base.c
 +++ b/drivers/mtd/nand/nand_base.c
-@@ -1143,7 +1143,7 @@ static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip,
+@@ -1143,7 +1143,7 @@ static int nand_read_page_swecc(struct m
   * @bufpoi: buffer to store read data
   */
  static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip,
@@ -22,7 +20,7 @@ index 184aa93..0131e84 100644
  {
        int start_step, end_step, num_steps;
        uint32_t *eccpos = chip->ecc.layout->eccpos;
-@@ -1324,6 +1324,75 @@ static int nand_read_page_hwecc_oob_first(struct mtd_info *mtd,
+@@ -1324,6 +1324,75 @@ static int nand_read_page_hwecc_oob_firs
  }
  
  /**
@@ -98,7 +96,7 @@ index 184aa93..0131e84 100644
   * nand_read_page_syndrome - [REPLACEABLE] hardware ECC syndrome based page read
   * @mtd: mtd info structure
   * @chip: nand chip info structure
-@@ -1482,7 +1551,7 @@ static int nand_do_read_ops(struct mtd_info *mtd, loff_t from,
+@@ -1482,7 +1551,7 @@ static int nand_do_read_ops(struct mtd_i
                                                              bufpoi, page);
                        else if (!aligned && NAND_SUBPAGE_READ(chip) && !oob)
                                ret = chip->ecc.read_subpage(mtd, chip,
@@ -120,8 +118,6 @@ index 184aa93..0131e84 100644
  
        case NAND_ECC_HW:
                /* Use standard hwecc read page function? */
-diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
-index 904131b..9034100 100644
 --- a/include/linux/mtd/nand.h
 +++ b/include/linux/mtd/nand.h
 @@ -211,9 +211,9 @@ typedef enum {
@@ -146,6 +142,3 @@ index 904131b..9034100 100644
        void (*write_page)(struct mtd_info *mtd, struct nand_chip *chip,
                        const uint8_t *buf);
        int (*write_oob_raw)(struct mtd_info *mtd, struct nand_chip *chip,
--- 
-1.7.5.4
-