]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: xway: Avoid messing up with IO_ADDR_W in ->cmd_ctrl()
authorJohn Crispin <john@phrozen.org>
Mon, 20 Jun 2016 21:32:09 +0000 (23:32 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 11 Jul 2016 06:40:15 +0000 (08:40 +0200)
commit71bdb83fd9b39b44bde30180a296b5debdc0dce2
tree5e11a4959ee19d1c4f52c10a93f574b3867a2fd4
parentdcb54470a4b05fe44b48158bde685ef81a834f1b
mtd: nand: xway: Avoid messing up with IO_ADDR_W in ->cmd_ctrl()

The ->cmd_ctrl() function is adjusting the ->IO_ADDR_W value depending
on the command type each time NAND_CTRL_CHANGE is passed. This is not
only useless but can lead to an ->IO_ADDR_W corruption.

Get rid of this logic and rely on the NAND_CLE and NAND_ALE flags to
deduce the iomem address to write the cmd argument to.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/xway_nand.c