public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] MXS-NAND: Backport ecc.size from linux kernel
@ 2011-12-18 17:50 Marek Vasut
  2011-12-19 14:33 ` Veli-Pekka Peltola
  2011-12-19 20:19 ` Scott Wood
  0 siblings, 2 replies; 11+ messages in thread
From: Marek Vasut @ 2011-12-18 17:50 UTC (permalink / raw)
  To: u-boot

The ecc.size for mxs NAND driver is set to 1 in Linux kernel and to 512 in
U-Boot, which causes "ubi part" command malfunction due to wrong subpage size.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Stefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
---
 drivers/mtd/nand/mxs_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c
index ce2a326..26778ac 100644
--- a/drivers/mtd/nand/mxs_nand.c
+++ b/drivers/mtd/nand/mxs_nand.c
@@ -1105,7 +1105,7 @@ int board_nand_init(struct nand_chip *nand)
 	nand->ecc.layout	= &fake_ecc_layout;
 	nand->ecc.mode		= NAND_ECC_HW;
 	nand->ecc.bytes		= 9;
-	nand->ecc.size		= 512;
+	nand->ecc.size		= 1;
 
 	return 0;
 
-- 
1.7.7.3

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

end of thread, other threads:[~2012-01-04  0:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-18 17:50 [U-Boot] [PATCH] MXS-NAND: Backport ecc.size from linux kernel Marek Vasut
2011-12-19 14:33 ` Veli-Pekka Peltola
2011-12-19 15:05   ` Marek Vasut
2011-12-19 15:30     ` Veli-Pekka Peltola
2011-12-19 20:19 ` Scott Wood
2011-12-19 20:23   ` Marek Vasut
2011-12-19 20:34     ` Scott Wood
2011-12-19 20:56       ` Marek Vasut
2012-01-03 21:20       ` Marek Vasut
2012-01-03 21:30         ` Scott Wood
2012-01-04  0:39           ` Marek Vasut

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