]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mtd: rawnand: sharpsl: Fix external use of SW Hamming ECC helper
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 13 Apr 2021 16:18:38 +0000 (18:18 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:05 +0000 (19:23 +0200)
commit2a729db46b5c4a4afcc484eb4f7d05785207fb83
tree4d70cd22521337855cf181abed9957e9b59560ec
parenta24d54a57ff74fc9d450d3d6b61b2af46e0d33c5
mtd: rawnand: sharpsl: Fix external use of SW Hamming ECC helper

BugLink: https://bugs.launchpad.net/bugs/1931896
commit 46fcb57e6b7283533ebf8ba17a6bd30fa88bdc9f 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
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20210413161840.345208-6-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/sharpsl.c