]> rtime.felk.cvut.cz Git - zynq/linux.git/commitdiff
mtd: Expand the ecc placement locations to 1260
authorShakti Bhatnagar <shakti.bhatnagar@xilinx.com>
Fri, 20 Mar 2015 13:36:10 +0000 (19:06 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 1 Apr 2019 10:48:25 +0000 (12:48 +0200)
Device like MT29F32G08ABCDBJ4 have a writesize/oobsize of 16K/1260 Bytes.
So, increasing the maximum ecc placement locations to 1260.

Value will be changed when mainline discussion is finished.

Signed-off-by: Shakti Bhatnagar <shaktib@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/linux/mtd/mtd.h

index cd0be91bdefa55f568253904c7d374751fffac52..662305b299d7b929bb7150acba3a0ad443a5e412 100644 (file)
@@ -85,7 +85,8 @@ struct mtd_oob_ops {
 };
 
 #define MTD_MAX_OOBFREE_ENTRIES_LARGE  32
-#define MTD_MAX_ECCPOS_ENTRIES_LARGE   640
+#define MTD_MAX_ECCPOS_ENTRIES_LARGE   1260
+
 /**
  * struct mtd_oob_region - oob region definition
  * @offset: region offset