]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: nand: sunxi: Add randomizer configuration before randomizer enable
authorWentao Liang <vulab@iscas.ac.cn>
Mon, 19 May 2025 15:42:24 +0000 (23:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:30 +0000 (11:07 +0100)
commitde3a9f01087773978b83e4e3de2db37c429e4b4a
tree959f3333beb67158af4b9c9d09985243bc80b8d6
parenta2df8702e658cf461d65cb049e9e423ebb2c857b
mtd: nand: sunxi: Add randomizer configuration before randomizer enable

commit 4a5a99bc79cdc4be63933653682b0261a67a0c9f upstream.

In sunxi_nfc_hw_ecc_read_chunk(), the sunxi_nfc_randomizer_enable() is
called without the config of randomizer. A proper implementation can be
found in sunxi_nfc_hw_ecc_read_chunks_dma().

Add sunxi_nfc_randomizer_config() before the start of randomization.

Fixes: 4be4e03efc7f ("mtd: nand: sunxi: add randomizer support")
Cc: stable@vger.kernel.org # v4.6
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/raw/sunxi_nand.c