mtd: nand: raw: gpmi: improve power management handling
authorHan Xu <han.xu@nxp.com>
Mon, 7 Oct 2024 19:13:19 +0000 (14:13 -0500)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 21 Oct 2024 09:24:39 +0000 (11:24 +0200)
commitf04ced6d545e20b3579c575b0afdbd7054db2543
treeaf0a99897606e002cd162804c9ac7e7c37d7a4fd
parentbc1bd939c4caa57a421c8cf3492140e2820a4860
mtd: nand: raw: gpmi: improve power management handling

Refactor the power management handling in the gpmi nand driver. Remove
redundant pm_runtime calls in the driver probe function. Handle the pad
control and use the leverage runtime suspend and resume calls to take
care of clocks in system suspend and resume functions.

Signed-off-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20241007191319.220775-2-han.xu@nxp.com
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c