mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
mtd: nand_base: allow drivers to choose ECC block size
This patch allows core driver to choose ECC block size in sw ecc case. Signed-off-by: Vimal Singh <vimalsingh@ti.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
05dd180709
commit
9a73290d77
1 changed files with 2 additions and 1 deletions
|
@ -2728,6 +2728,7 @@ int nand_scan_tail(struct mtd_info *mtd)
|
||||||
chip->ecc.write_page_raw = nand_write_page_raw;
|
chip->ecc.write_page_raw = nand_write_page_raw;
|
||||||
chip->ecc.read_oob = nand_read_oob_std;
|
chip->ecc.read_oob = nand_read_oob_std;
|
||||||
chip->ecc.write_oob = nand_write_oob_std;
|
chip->ecc.write_oob = nand_write_oob_std;
|
||||||
|
if (!chip->ecc.size)
|
||||||
chip->ecc.size = 256;
|
chip->ecc.size = 256;
|
||||||
chip->ecc.bytes = 3;
|
chip->ecc.bytes = 3;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue