]> 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)
commite2e97b0954aa2be4a24fc5bb35055ad8ee12be8b
tree6b97069a3d86c68b3b76e292b9932183eb3a5163
parent95cbe5600d5dbca23acf2042bc50f2ba60cebc35
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