]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a86df64ab60f8cfa4aff80039c260f841b04ebe
tree7be574741a78309da53964701d5ba7a6074c927b
parent5647f280c2340c36a1b3bb67640f9404eca67c1f
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: 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