]> Gentwo Git Trees - linux/.git/commit
mtd: rawnand: sunxi: Remove superfluous register readings
authorRichard Genoud <richard.genoud@bootlin.com>
Tue, 28 Oct 2025 07:34:55 +0000 (08:34 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 28 Oct 2025 16:16:01 +0000 (17:16 +0100)
commitdeaa77ed66bf6ed1f7c06c183bd7a5bc0d931c62
tree83bb860a372900545f665e29fe013238157e3a13
parent7c99743a0b10d18abe6895c01843aa5d7f8a2a6f
mtd: rawnand: sunxi: Remove superfluous register readings

The register NFC_REG_ECC_CTL was read twice and the result was not used,
then a third time with a mask applied.
Removing those calls didn't change the behavior.

Tested on H616 SoC, scrambling enabled.

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Richard Genoud <richard.genoud@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/sunxi_nand.c