mtd: rawnand: stm32_fmc2: use FMC2_TIMEOUT_5S for timeouts
authorChristophe Kerello <christophe.kerello@st.com>
Fri, 31 Jul 2020 07:53:36 +0000 (09:53 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 13 Aug 2020 07:53:34 +0000 (09:53 +0200)
commit4a470044e15031b59b8e66d12e92f2d13da009c9
tree5b76b1b65c09e2a0babc08e9fa60d458f03882f9
parenta3899b373fc62431347330cbb833fcdb5b537116
mtd: rawnand: stm32_fmc2: use FMC2_TIMEOUT_5S for timeouts

FMC2_TIMEOUT_5S will be used each time that we need to wait.
It was seen, during stress tests in an overloaded system,
that we could be close to 1 second, even if we never met this
value. To be safe, FMC2_TIMEOUT_MS is set to 5 seconds.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
drivers/mtd/nand/raw/stm32_fmc2_nand.c