mtd: rawnand: gpmi: Restore nfc timing setup after suspend/resume
authorEsben Haabendal <esben@geanix.com>
Fri, 17 Jan 2020 20:05:37 +0000 (21:05 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 17 Jan 2020 21:45:09 +0000 (22:45 +0100)
commitd70486668cdf51b14a50425ab45fc18677a167b2
tree7be574741a78309da53964701d5ba7a6074c927b
parent5bc6bb603b4d0c8802af75e4932232683ab2d761
mtd: rawnand: gpmi: Restore nfc timing setup after suspend/resume

As we reset the GPMI block at resume, the timing parameters setup by a
previous exec_op is lost.  Rewriting GPMI timing registers on first exec_op
after resume fixes the problem.

Fixes: ef347c0cfd61 ("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