Commit 50b8d1dc authored by Jarkko Lavinen's avatar Jarkko Lavinen Committed by David Woodhouse

MTD: Increase nand_write_page() ECC buffer size to cope with 12-byte ECC.

Signed-off-by: default avatarJarkko Lavinen <Jarkko.Lavinen@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 5fa0d48a
......@@ -41,7 +41,7 @@
* The AG-AND chips have nice features for speed improvement,
* which are not supported yet. Read / program 4 pages in one go.
*
* $Id: nand_base.c,v 1.123 2004/11/02 22:36:59 gleixner Exp $
* $Id: nand_base.c,v 1.125 2004/12/03 14:06:14 lavinen Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
......@@ -810,7 +810,7 @@ static int nand_write_page (struct mtd_info *mtd, struct nand_chip *this, int pa
u_char *oob_buf, struct nand_oobinfo *oobsel, int cached)
{
int i, status;
u_char ecc_code[8];
u_char ecc_code[12];
int eccmode = oobsel->useecc ? this->eccmode : NAND_ECC_NONE;
int *oob_config = oobsel->eccpos;
int datidx = 0, eccidx = 0, eccsteps = this->eccsteps;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment