]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:05 +0000 (19:23 +0200)
commitadb6e45a5e36c52c7ab0b6cd957ee9c65ca60003
treeb615a06b24ff20527ce51926adccf110a211f1be
parent2a729db46b5c4a4afcc484eb4f7d05785207fb83
mtd: rawnand: lpc32xx_slc: Fix external use of SW Hamming ECC helper

BugLink: https://bugs.launchpad.net/bugs/1931896
commit c4b7d7c480d607e4f52d310d9d16b194868d0917 upstream.

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: 90ccf0a0192f ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/mtd/nand/raw/lpc32xx_slc.c