Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30c72ab1 authored by Linus Walleij's avatar Linus Walleij Committed by Miquel Raynal
Browse files

mtd: rawnand: fsmc: Reset NAND timings on resume()



When we go through a suspend/resume cycle the NAND
timings and other settings may have been lost so reset
the chip to bring it up in a known working state.

The FSMC only supports single CS chips so we only need
to call nand_reset(chip, 0).

Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
parent c40c7a99
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1185,6 +1185,7 @@ static int fsmc_nand_resume(struct device *dev)
		clk_prepare_enable(host->clk);
		if (host->dev_timings)
			fsmc_nand_setup(host, host->dev_timings);
		nand_reset(&host->nand, 0);
	}

	return 0;