mtd: rawnand: stm32_fmc2: use timings.mode instead of checking tRC_min
authorChristophe Kerello <christophe.kerello@foss.st.com>
Tue, 28 Mar 2023 15:58:19 +0000 (17:58 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 3 Apr 2023 15:57:57 +0000 (17:57 +0200)
commitddbb664b6ab8de7dffa388ae0c88cd18616494e5
tree48b4fb93a6585452dad5139f406600193e3c93d3
parentf71e0e329c152c7f11ddfd97ffc62aba152fad3f
mtd: rawnand: stm32_fmc2: use timings.mode instead of checking tRC_min

Use timings.mode value instead of checking tRC_min timing
for EDO mode support.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Fixes: 2cd457f328c1 ("mtd: rawnand: stm32_fmc2: add STM32 FMC2 NAND flash controller driver")
Cc: stable@vger.kernel.org #v5.10+
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20230328155819.225521-3-christophe.kerello@foss.st.com
drivers/mtd/nand/raw/stm32_fmc2_nand.c