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)
commit9c076d7e948773ac45cf1ec7ca2c7d6a5bddb8fa
tree6b97069a3d86c68b3b76e292b9932183eb3a5163
parent2b44af3ad6cc5e39267791215cfef974fb3f7be5
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