]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: ams-delta: Set port direction when needed
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 19 Sep 2018 22:52:55 +0000 (00:52 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Wed, 3 Oct 2018 09:12:25 +0000 (11:12 +0200)
commit05c6a8f201720ee4e0f6ba002f0adc1bf43846b2
tree6b97069a3d86c68b3b76e292b9932183eb3a5163
parenta2e973376756319ce9b360d04d0244a7e1c55b74
mtd: rawnand: ams-delta: Set port direction when needed

In its current shape, the driver sets data port direction before each
byte read/write operation, even during multi-byte transfers.  Improve
performance of the driver by setting the port direction only when
needed.

This optimisation will become particularly important as soon as
planned conversion of the driver to GPIO API for data I/O will be
implemented.

Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/ams-delta.c