]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: nand: raw: atmel: Use ONFI ECC params if available
authorZixun LI <admin@hifiphile.com>
Sun, 21 Jul 2024 21:45:52 +0000 (23:45 +0200)
committerMichael Trimarchi <michael@amarulasolutions.com>
Sat, 12 Oct 2024 16:10:21 +0000 (18:10 +0200)
commit1db2aadd8415778f05616e5bc1f1a7500ef7a40a
treebb1f9f9128968a5bcf27023b46b3713f6ba5a2b9
parent47e544f576699ca4630e20448db6a05178960697
mtd: nand: raw: atmel: Use ONFI ECC params if available

When ECC parameters are not specified in DT, first try ONFI ECC parameters
before fallback to maximum strength.

It's the Linux driver behavior since the driver rewriting in f88fc12.

From then 2 nand system refactors have been done in 6a1b66d6 and 53576c7b,
chip->ecc_strength_ds and chip->ecc_step_ds became
nanddev_get_ecc_requirements(). U-Boot didn't follow the refactor and
always use these 2 fields.

v2: Fix formatting, add upstream commit hash.

Signed-off-by: Zixun LI <zli@ogga.fr>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: Balamanikandan Gunasundar
drivers/mtd/nand/raw/atmel/nand-controller.c