]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: lpc32xx_slc: Fix external use of SW Hamming ECC helper
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 13 Apr 2021 16:18:36 +0000 (18:18 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 10 May 2021 16:34:29 +0000 (18:34 +0200)
commit782b01444ab76fdc68a6cdc75a0be6affd483cf3
tree7ab4486db2fcac5f81922a6d2792ed5066e356cd
parente2d324fd0ddda9de69eeb769db4c48efa79afe6b
mtd: rawnand: lpc32xx_slc: Fix external use of SW Hamming ECC helper

Since the Hamming software ECC engine has been updated to become a
proper and independent ECC engine, it is now mandatory to either
initialize the engine before using any one of his functions or use one
of the bare helpers which only perform the calculations. As there is no
actual need for a proper ECC initialization, let's just use the bare
helper instead of the rawnand one.

Fixes: 12a2552d4b0c ("mtd: nand: ecc-hamming: Rename the exported functions")
Cc: stable@vger.kernel.org
Cc: Vladimir Zapolskiy <vz@mleia.com>
Reported-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Trevor Woerner <twoerner@gmail.com>
Acked-by: Vladimir Zapolskiy <vz@mleia.com>
Link: https://lore.kernel.org/linux-mtd/20210413161840.345208-4-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/lpc32xx_slc.c