Skip to content

Commit 4a5a99b

Browse files
ISCAS-Vulabmiquelraynal
authored andcommitted
mtd: nand: sunxi: Add randomizer configuration before randomizer enable
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: 4be4e03 ("mtd: nand: sunxi: add randomizer support") Cc: [email protected] # v4.6 Signed-off-by: Wentao Liang <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent dd26402 commit 4a5a99b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mtd/nand/raw/sunxi_nand.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ static int sunxi_nfc_hw_ecc_read_chunk(struct nand_chip *nand,
817817
if (ret)
818818
return ret;
819819

820+
sunxi_nfc_randomizer_config(nand, page, false);
820821
sunxi_nfc_randomizer_enable(nand);
821822
writel(NFC_DATA_TRANS | NFC_DATA_SWAP_METHOD | NFC_ECC_OP,
822823
nfc->regs + NFC_REG_CMD);

0 commit comments

Comments
 (0)