Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a73290d authored by Singh, Vimal's avatar Singh, Vimal Committed by David Woodhouse
Browse files

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: default avatarVimal Singh <vimalsingh@ti.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 05dd1807
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2728,6 +2728,7 @@ int nand_scan_tail(struct mtd_info *mtd)
		chip->ecc.write_page_raw = nand_write_page_raw;
		chip->ecc.read_oob = nand_read_oob_std;
		chip->ecc.write_oob = nand_write_oob_std;
		if (!chip->ecc.size)
			chip->ecc.size = 256;
		chip->ecc.bytes = 3;
		break;