]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:28 +0000 (14:21 -0300)
commit9ad636524e51fbb6203ea1da6f2bb93f90d4b5b0
treeb8cccd44188c9c482bc6d57a5de2ab8d78d489a8
parent370c441fadf543f46d02869e84ad2b8532ab7f14
mtd: rawnand: sunxi: Write pageprog related opcodes to WCMD_SET

BugLink: https://bugs.launchpad.net/bugs/1855787
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/mtd/nand/sunxi_nand.c