]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: nand: sunxi: Improve sunxi_nfc_cmd_ctrl()
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 6 Jan 2017 09:42:07 +0000 (10:42 +0100)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 6 Feb 2017 08:35:19 +0000 (09:35 +0100)
commitcad32741218299eee3f75de21ac9ccab8485bd62
tree3a3dae165a09485be7686cd88e10e9d0df7c0144
parent8de15e1feb232086d1d14e01a6a7648d10002c19
mtd: nand: sunxi: Improve sunxi_nfc_cmd_ctrl()

We only need to call sunxi_nfc_wait_cmd_fifo_empty() if we want to send
a new command. Move the sunxi_nfc_wait_cmd_fifo_empty() call to right
place to avoid extra register reads.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/sunxi_nand.c