[PATCH] mtd: rawnand: mxc: Move the ECC engine initialization to the right place

Fabio Estevam festevam at gmail.com
Fri Oct 16 15:18:15 EDT 2020


Hi Miquel,

On Fri, Oct 16, 2020 at 2:01 PM Miquel Raynal <miquel.raynal at bootlin.com> wrote:

> Software ECC is used, is it expected?

I noticed the issue with your patch: host->pdata.hw_ecc cannot be
called within attach() because pdata is not initialized at this point.

Instead of using pdata, we can retrieve the "nand-ecc-mode" string
from the device tree.

I will submit the correct fix.

Thanks



More information about the linux-mtd mailing list