Commit 9efac6c
mtd: rawnand: stm32_fmc2: fix broken ECC
Since commit d7157ff ("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: d7157ff ("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.com1 parent 324f78d commit 9efac6c
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1708 | 1708 | | |
1709 | 1709 | | |
1710 | 1710 | | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
1711 | 1718 | | |
1712 | 1719 | | |
1713 | 1720 | | |
| |||
1727 | 1734 | | |
1728 | 1735 | | |
1729 | 1736 | | |
1730 | | - | |
1731 | | - | |
| 1737 | + | |
1732 | 1738 | | |
1733 | 1739 | | |
1734 | 1740 | | |
| |||
1952 | 1958 | | |
1953 | 1959 | | |
1954 | 1960 | | |
1955 | | - | |
1956 | | - | |
1957 | | - | |
1958 | | - | |
1959 | | - | |
1960 | 1961 | | |
1961 | 1962 | | |
1962 | 1963 | | |
| |||
0 commit comments