All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kyungmin Park <kyungmin.park@samsung.com>
To: dwmw2@infradead.org, linux-mtd@lists.infradead.org
Subject: [PATCH/RFC] [MTD] Increase the MTD_MAX_ECCPOS_ENTRIES to 80
Date: Fri, 14 Dec 2007 15:45:55 +0900	[thread overview]
Message-ID: <20071214064555.GA29506@party> (raw)

Hi,

Besides from the SLC flash, MLC flash s required more powerful ECC scheme than 1-bit. Usually, it used the 4-bit ECC. It means it needs more eccpos.
However the current eccpos array doesn't fit for it.

So I hope to increase this one to 80.
I'm not sure the bare NAND needs more rooms.

Any comments are welcome.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index 5a61074..2e2f828 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -114,13 +114,14 @@ struct nand_oobfree {
 };
 
 #define MTD_MAX_OOBFREE_ENTRIES	8
+#define MTD_MAX_ECCPOS_ENTRIES	80
 /*
  * ECC layout control structure. Exported to userspace for
  * diagnosis and to allow creation of raw images
  */
 struct nand_ecclayout {
 	uint32_t eccbytes;
-	uint32_t eccpos[64];
+	uint32_t eccpos[MTD_MAX_ECCPOS_ENTRIES];
 	uint32_t oobavail;
 	struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];
 };

                 reply	other threads:[~2007-12-14  6:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071214064555.GA29506@party \
    --to=kyungmin.park@samsung.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.