Skip to content

Commit d704866

Browse files
esbenmiquelraynal
authored andcommitted
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: ef347c0 ("mtd: rawnand: gpmi: Implement exec_op") Cc: [email protected] Signed-off-by: Esben Haabendal <[email protected]> Acked-by: Han Xu <[email protected]> Signed-off-by: Miquel Raynal <[email protected]>
1 parent 5bc6bb6 commit d704866

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,6 +2727,10 @@ static int gpmi_pm_resume(struct device *dev)
27272727
return ret;
27282728
}
27292729

2730+
/* Set flag to get timing setup restored for next exec_op */
2731+
if (this->hw.clk_rate)
2732+
this->hw.must_apply_timings = true;
2733+
27302734
/* re-init the BCH registers */
27312735
ret = bch_set_geometry(this);
27322736
if (ret) {

0 commit comments

Comments
 (0)