mtd: rawnand: nandsim: Fix the logic when selecting Hamming soft ECC engine
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 4 Jan 2021 09:30:57 +0000 (10:30 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 14 Jan 2021 15:44:37 +0000 (16:44 +0100)
commit3c97be6982e689d7b2430187a11f8c78e573abdb
tree2b3f462feec013fe54538b2a7ba96c3fdd15cdf5
parent4883a60c17eda6bf52d1c817ee7ead65b4a02da2
mtd: rawnand: nandsim: Fix the logic when selecting Hamming soft ECC engine

I have been fooled by the logic picking the right ECC engine which is
spread across two functions: *init_module() and *_attach(). I thought
this driver was not impacted by the recent changes around the ECC
engines DT parsing logic but in fact it is.

Reported-by: kernel test robot <oliver.sang@intel.com>
Fixes: d7157ff49a5b ("mtd: rawnand: Use the ECC framework user input parsing bits")
Cc: stable@vger.kernel.org
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210104093057.31178-1-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nandsim.c