mtd: nand: xway: fix nand locking
authorJohn Crispin <john@phrozen.org>
Mon, 20 Jun 2016 21:32:11 +0000 (23:32 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 11 Jul 2016 06:40:15 +0000 (08:40 +0200)
commite7e1f7be335458139e0a112bd0aae40d33dfe3a8
tree7f18bc7c7077ada41cf0848683543fbd7e621dff
parent44772fa5ec4162ef133f1294299d1e1ada7d2d11
mtd: nand: xway: fix nand locking

The external Bus Unit (EBU) can control different flash devices, but
these NAND flash commands have to be atomic and should not be
interrupted in between. Lock the EBU from the beginning of the command
till the end by moving the lock to the chip select.

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