public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] OneNAND: Update OOB free table
@ 2006-12-07 10:13 Timo Teras
  0 siblings, 0 replies; only message in thread
From: Timo Teras @ 2006-12-07 10:13 UTC (permalink / raw)
  To: Kyungmin Park, David Woodhouse; +Cc: linux-mtd

Do not use bytes managed by OneNAND ECC logic for Logical Sector Number
data.

Signed-off-by: Timo Teras <timo.teras@solidboot.com>
---
The OneNAND specification says that the three bytes at offsets 2, 18, 34
and 50 are managed by internal ecc logic. The effect is obvious as
modifying these bytes, it also modifies ECC code for spare area.

 drivers/mtd/onenand/onenand_base.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index d9f7940..778e4bc 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -31,10 +31,7 @@ static struct nand_ecclayout onenand_oob
 		40, 41, 42, 43, 44,
 		56, 57, 58, 59, 60,
 		},
-	.oobfree	= {
-		{2, 3}, {14, 2}, {18, 3}, {30, 2},
-		{34, 3}, {46, 2}, {50, 3}, {62, 2}
-	}
+	.oobfree	= { {14, 2}, {30, 2}, {46, 2}, {62, 2} }
 };
 
 /**
-- 
1.4.3.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-07 10:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-07 10:13 [PATCH] OneNAND: Update OOB free table Timo Teras

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