ar71xx/ath79: fix mtd corruption
[openwrt/staging/dedeckeh.git] / target / linux / ar71xx / patches-4.14 / 411-mtd-cfi_cmdset_0002-force-word-write.patch
index b28d6c1c2d2475c40f6f3045712e807f835eaee7..3862dfd14b24832b7c7cd234e33ce7be9275f62b 100644 (file)
@@ -35,7 +35,7 @@
  
  /* Atmel chips don't use the same PRI format as AMD chips */
  static void fixup_convert_atmel_pri(struct mtd_info *mtd)
-@@ -1792,6 +1796,7 @@ static int cfi_amdstd_write_words(struct
+@@ -1794,6 +1798,7 @@ static int cfi_amdstd_write_words(struct
  /*
   * FIXME: interleaved mode not tested, and probably not supported!
   */
@@ -43,7 +43,7 @@
  static int __xipram do_write_buffer(struct map_info *map, struct flchip *chip,
                                    unsigned long adr, const u_char *buf,
                                    int len)
-@@ -1920,7 +1925,6 @@ static int __xipram do_write_buffer(stru
+@@ -1922,7 +1927,6 @@ static int __xipram do_write_buffer(stru
        return ret;
  }
  
@@ -51,7 +51,7 @@
  static int cfi_amdstd_write_buffers(struct mtd_info *mtd, loff_t to, size_t len,
                                    size_t *retlen, const u_char *buf)
  {
-@@ -1995,6 +1999,7 @@ static int cfi_amdstd_write_buffers(stru
+@@ -1997,6 +2001,7 @@ static int cfi_amdstd_write_buffers(stru
  
        return 0;
  }