projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c60e54
)
[MTD] [NAND] Use ecc.read/write_page_raw consequently
author
Thomas Gleixner
<tglx@inhell4.tec.linutronix.de>
Thu, 5 Apr 2007 09:44:05 +0000
(11:44 +0200)
committer
David Woodhouse
<dwmw2@infradead.org>
Tue, 17 Apr 2007 17:28:17 +0000
(18:28 +0100)
Use the functions in the ecc structure instead of the default ones,
so the override by the board driver is effective also for software ecc
code paths.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nand/nand_base.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_base.c
b/drivers/mtd/nand/nand_base.c
index 6af37b8cff65a039d7216203e2b5b9b7750d2bf1..5b96f1c5759f57806a62034c9b695ddcb56367b8 100644
(file)
--- a/
drivers/mtd/nand/nand_base.c
+++ b/
drivers/mtd/nand/nand_base.c
@@
-771,7
+771,7
@@
static int nand_read_page_swecc(struct mtd_info *mtd, struct nand_chip *chip,
uint8_t *ecc_code = chip->buffers->ecccode;
int *eccpos = chip->ecc.layout->eccpos;
-
nand_
read_page_raw(mtd, chip, buf);
+
chip->ecc.
read_page_raw(mtd, chip, buf);
for (i = 0; eccsteps; eccsteps--, i += eccbytes, p += eccsize)
chip->ecc.calculate(mtd, p, &ecc_calc[i]);
@@
-1426,7
+1426,7
@@
static void nand_write_page_swecc(struct mtd_info *mtd, struct nand_chip *chip,
for (i = 0; i < chip->ecc.total; i++)
chip->oob_poi[eccpos[i]] = ecc_calc[i];
-
nand_
write_page_raw(mtd, chip, buf);
+
chip->ecc.
write_page_raw(mtd, chip, buf);
}
/**