public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
@ 2009-04-01  9:53 vimal singh
  2009-04-01 10:01 ` Artem Bityutskiy
  0 siblings, 1 reply; 9+ messages in thread
From: vimal singh @ 2009-04-01  9:53 UTC (permalink / raw)
  To: linux-mtd

I do not see this patch on tree, yet.

------------------------------ Original Message -------------------------------
Subject: [PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc
From:    "vimal singh" <vimalsingh@ti.com>
Date:    Mon, February 23, 2009 1:46 pm
To:      linux-mtd@lists.infradead.org
-------------------------------------------------------------------------------

Type of 'byte_addr' needed to change for 512 byte ecc support.

Signed-off-by: Vimal Singh <vimalsingh@ti.com>
---

diff --git a/drivers/mtd/nand/nand_ecc.c b/drivers/mtd/nand/nand_ecc.c index
868147a..6b19058 100644
--- a/drivers/mtd/nand/nand_ecc.c
+++ b/drivers/mtd/nand/nand_ecc.c
@@ -429,7 +429,8 @@ int nand_correct_data(struct mtd_info *mtd, unsigned char
*buf,
 		      unsigned char *read_ecc, unsigned char *calc_ecc)
 {
 	unsigned char b0, b1, b2;
-	unsigned char byte_addr, bit_addr;
+	uint32_t byte_addr;
+	unsigned char bit_addr;
 	/* 256 or 512 bytes/ecc  */
 	const uint32_t eccsize_mult =
 			(((struct nand_chip *)mtd->priv)->ecc.size) >> 8;

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

end of thread, other threads:[~2009-04-25 14:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01  9:53 [resending][PATCH] [MTD] [NAND] nand_ecc.c: Bug fix in nand ecc vimal singh
2009-04-01 10:01 ` Artem Bityutskiy
2009-04-01 10:02   ` Artem Bityutskiy
2009-04-01 10:11   ` Singh, Vimal
2009-04-24  6:32     ` Singh, Vimal
2009-04-24  7:39       ` Artem Bityutskiy
2009-04-24  8:27         ` Singh, Vimal
2009-04-24  9:31           ` Artem Bityutskiy
2009-04-25 14:55             ` Frans Meulenbroeks

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