mtd: rawnand: stm32_fmc2: fix broken ECC
authorChristophe Kerello <christophe.kerello@st.com>
Fri, 30 Oct 2020 13:33:39 +0000 (14:33 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 30 Oct 2020 17:24:51 +0000 (18:24 +0100)
commit9efac6ce7f621c405d49a091e3e367be4250a27a
tree5d5692f29b89bd019a58e4c16978f3e4e10d7b3d
parent324f78dfb442b82365548b657ec4e6974c677502
mtd: rawnand: stm32_fmc2: fix broken ECC

Since commit d7157ff49a5b ("mtd: rawnand: Use the ECC framework user
input parsing bits"), ECC are broken in FMC2 driver in case of
nand-ecc-step-size and nand-ecc-strength are not set in the device tree.
To avoid this issue, the default settings are now set in
stm32_fmc2_nfc_attach_chip function.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Fixes: d7157ff49a5b ("mtd: rawnand: Use the ECC framework user input parsing bits")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1604064819-26861-1-git-send-email-christophe.kerello@st.com
drivers/mtd/nand/raw/stm32_fmc2_nand.c