]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: gpmi: Fix suspend/resume problem
authorEsben Haabendal <esben@geanix.com>
Fri, 17 Jan 2020 20:05:36 +0000 (21:05 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 17 Jan 2020 21:45:07 +0000 (22:45 +0100)
commit5647f280c2340c36a1b3bb67640f9404eca67c1f
tree21b6dd50cf941f7639d3a9f55c036ba24c5556f3
parentda705734c8c1364749867b867f58ebc79c6f90ee
mtd: rawnand: gpmi: Fix suspend/resume problem

On system resume, the gpmi clock must be enabled before accessing gpmi
block.  Without this, resume causes something like

[  661.348790] gpmi_reset_block(5cbb0f7e): module reset timeout
[  661.348889] gpmi-nand 1806000.gpmi-nand: Error setting GPMI : -110
[  661.348928] PM: dpm_run_callback(): platform_pm_resume+0x0/0x44 returns -110
[  661.348961] PM: Device 1806000.gpmi-nand failed to resume: error -110

Fixes: ee4b320269d4 ("mtd: rawnand: gpmi: Implement exec_op")
Cc: stable@vger.kernel.org
Signed-off-by: Esben Haabendal <esben@geanix.com>
Acked-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c