提交 f771749e 编写于 作者: B Boris BREZILLON 提交者: Brian Norris

mtd: nand: lpc32xx_mlc: fix ecc.size

According to the ECC layout description the actual ecc.size is 512 bytes
and not mtd->writesize.
Signed-off-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 8be721be
...@@ -750,7 +750,7 @@ static int lpc32xx_nand_probe(struct platform_device *pdev) ...@@ -750,7 +750,7 @@ static int lpc32xx_nand_probe(struct platform_device *pdev)
} }
nand_chip->ecc.mode = NAND_ECC_HW; nand_chip->ecc.mode = NAND_ECC_HW;
nand_chip->ecc.size = mtd->writesize; nand_chip->ecc.size = 512;
nand_chip->ecc.layout = &lpc32xx_nand_oob; nand_chip->ecc.layout = &lpc32xx_nand_oob;
host->mlcsubpages = mtd->writesize / 512; host->mlcsubpages = mtd->writesize / 512;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册