public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] NAND:Extending the nand_ecclayout structure
@ 2009-11-16 18:31 s-paulraj at ti.com
  2009-11-18 20:29 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: s-paulraj at ti.com @ 2009-11-16 18:31 UTC (permalink / raw)
  To: u-boot

From: Sandeep Paulraj <s-paulraj@ti.com>

NANDs with page size of lesser than and equal to 2K are
reaching EOL. They are bing replaced with NANDs of
page size 4K and above.
To support this we have to extend the eccpos field

Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
---
I believe a patch was submitted to linux-mtd to update this.
But this change was rejected to the best of my knowledge because
it will break user space IOCTL's, i.e. when we we run some tests
from the mtd-utils. I can't see an solution to the issue addressed
in the kernel or mtd-utils. I think this can be added to u-boot. 
 include/linux/mtd/mtd-abi.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/mtd/mtd-abi.h b/include/linux/mtd/mtd-abi.h
index 410c5dd..8d5f60c 100644
--- a/include/linux/mtd/mtd-abi.h
+++ b/include/linux/mtd/mtd-abi.h
@@ -123,7 +123,7 @@ struct nand_oobfree {
  */
 struct nand_ecclayout {
 	uint32_t eccbytes;
-	uint32_t eccpos[64];
+	uint32_t eccpos[128];
 	uint32_t oobavail;
 	struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];
 };
-- 
1.6.0.4

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

end of thread, other threads:[~2009-11-18 20:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-16 18:31 [U-Boot] [PATCH] NAND:Extending the nand_ecclayout structure s-paulraj at ti.com
2009-11-18 20:29 ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox