mtd: rawnand: gpmi: use runtime PM to manage clocks
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 21 May 2019 07:06:38 +0000 (09:06 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Jun 2019 18:05:28 +0000 (20:05 +0200)
commit041414682b0daa04c9ab40c87ffd86bc55abf592
tree376519bbb935b1cadf229d6a1d83eba94db23cf7
parent1ee514d00d64678be30b6ce2d5daa49965b9ee2b
mtd: rawnand: gpmi: use runtime PM to manage clocks

The gpmi driver aggressively en/disables the clocks between operations
which has significant performance cost. Use runtime PM to get rid of
this bottleneck.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c