mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
mtd: rawnand: gpmi: Restore nfc timing setup after suspend/resume
commit d70486668cdf51b14a50425ab45fc18677a167b2 upstream.
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: [email protected]
Signed-off-by: Esben Haabendal <[email protected]>
Acked-by: Han Xu <[email protected]>
Signed-off-by: Miquel Raynal <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
e7dd16f419
commit
fc01fedf5a
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue