Hi Austin,
I think the mainline Linux kernel may utilise fsl,use-minimum-ecc but I haven't tested its behaviour.
It seems to.
We're testing an upgrade from the v4.1 fsl imx branch to the v4.11 upstream, and ran into ECC issues too:
When trying to mount an ubi partition:
[ 112.846068] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
Our v4.1 DTS entry looked like this:
&gpmi {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpmi_nand_1>;
status = "okay";
nand-on-flash-bbt;
};
I can confirm that by setting the fsl,use-minimum-ecc flag, I now get past these errors on v4.11:
&gpmi {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpmi_nand_1>;
status = "okay";
nand-on-flash-bbt;
fsl,use-minimum-ecc; // Act like the V4.1 driver does by default
};