linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mtd: Expand the ecc placement locations to 1216
@ 2015-11-05 16:58 Punnaiah Choudary Kalluri
       [not found] ` <1446742735-20824-1-git-send-email-punnaia-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Punnaiah Choudary Kalluri @ 2015-11-05 16:58 UTC (permalink / raw)
  To: dwmw2, computersforpeace, michals
  Cc: linux-mtd, linux-kernel, linux-api, kpc528,
	kalluripunnaiahchoudary, Punnaiah Choudary Kalluri

Device like MT29F32G08ABCDBJ4 have a writesize/oobsize of 16K/1216 Bytes.
So, increasing the maximum ecc placement locations to 1216

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
---
 include/linux/mtd/mtd.h    | 2 +-
 include/uapi/mtd/mtd-abi.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index f17fa75..1fd3cc6 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -95,7 +95,7 @@ struct mtd_oob_ops {
 };
 
 #define MTD_MAX_OOBFREE_ENTRIES_LARGE	32
-#define MTD_MAX_ECCPOS_ENTRIES_LARGE	640
+#define MTD_MAX_ECCPOS_ENTRIES_LARGE	1216
 /*
  * Internal ECC layout control structure. For historical reasons, there is a
  * similar, smaller struct nand_ecclayout_user (in mtd-abi.h) that is retained
diff --git a/include/uapi/mtd/mtd-abi.h b/include/uapi/mtd/mtd-abi.h
index 763bb69..c4d592c 100644
--- a/include/uapi/mtd/mtd-abi.h
+++ b/include/uapi/mtd/mtd-abi.h
@@ -220,8 +220,8 @@ struct nand_oobfree {
 	__u32 length;
 };
 
-#define MTD_MAX_OOBFREE_ENTRIES	8
-#define MTD_MAX_ECCPOS_ENTRIES	64
+#define MTD_MAX_OOBFREE_ENTRIES	32
+#define MTD_MAX_ECCPOS_ENTRIES	1216
 /*
  * OBSOLETE: ECC layout control structure. Exported to user-space via ioctl
  * ECCGETLAYOUT for backwards compatbility and should not be mistaken as a
-- 
2.1.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-12-01 16:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-05 16:58 [PATCH] mtd: Expand the ecc placement locations to 1216 Punnaiah Choudary Kalluri
     [not found] ` <1446742735-20824-1-git-send-email-punnaia-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2015-11-20 19:33   ` Brian Norris
     [not found]     ` <20151120193342.GX64635-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-11-21 15:29       ` punnaiah choudary kalluri
     [not found]         ` <CAGnW=BZzoo1YFyAYx+oKkCPBOCTSz_KYY+t0=2wh4Fscx7e0eg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-11-30 21:11           ` Brian Norris
     [not found]             ` <20151130211105.GO64635-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-12-01 16:06               ` punnaiah choudary kalluri
2015-12-01 11:15     ` Boris Brezillon
2015-12-01 16:11       ` punnaiah choudary kalluri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).