mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
mtd: rawnand: gpmi: Restore nfc timing setup after suspend/resume
commitd70486668cupstream. 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:ef347c0cfd("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e7dd16f419
commit
fc01fedf5a
@@ -2727,6 +2727,10 @@ static int gpmi_pm_resume(struct device *dev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Set flag to get timing setup restored for next exec_op */
|
||||
if (this->hw.clk_rate)
|
||||
this->hw.must_apply_timings = true;
|
||||
|
||||
/* re-init the BCH registers */
|
||||
ret = bch_set_geometry(this);
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user