mtd: rawnand: diskonchip: Implement exec_op()
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 1 May 2020 14:39:16 +0000 (16:39 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 11 May 2020 07:51:43 +0000 (09:51 +0200)
commitf46eb7affbda926a7379c0e13b7fa815ebfbb50d
treed1f9a636a104d29e1ed9207597ae7512bf07717a
parentf37b1d3c8f3682eb654ad914ca69503f5b98941d
mtd: rawnand: diskonchip: Implement exec_op()

Implement exec_op() so we can later get rid of the legacy
implementation.

It's worth noting that the new implementation assert/deassert the CE
pin on each operation, which might not be necessary. We also dropped
the extra reset done at chip selection time on DOC2001plus. If it's
needed we really should do something smarter, because having a reset
everytime we access the chip is not that great perf-wise.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200501143917.1388957-5-boris.brezillon@collabora.com
drivers/mtd/nand/raw/diskonchip.c