]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ed126607d361fd27e224ff9bdf3f65d2f6cd357
treed1f9a636a104d29e1ed9207597ae7512bf07717a
parent97f5b5fd8e6d4f5a2926c4dc41fe7a1655d77fe0
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