mtd: rawnand: sunxi: Write pageprog related opcodes to WCMD_SET
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 16 Dec 2018 08:34:17 +0000 (09:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:34:27 +0000 (15:34 +0100)
commitdc6ed68af991712501c85d4904b65117485721ed
tree79b673a9d98d82fb27b7efa049f28c6899bc7dc0
parent006469cfaa9073151e618a1b703a5d529ef01d64
mtd: rawnand: sunxi: Write pageprog related opcodes to WCMD_SET

[ Upstream commit 732774437ae01d9882e60314e303898e63c7f038 ]

The opcodes used by the controller when doing batched page prog should
be written in NFC_REG_WCMD_SET not FC_REG_RCMD_SET. Luckily, the
default NFC_REG_WCMD_SET value matches the one we set in the driver
which explains why we didn't notice the problem.

Fixes: 614049a8d904 ("mtd: nand: sunxi: add support for DMA assisted operations")
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/sunxi_nand.c