drivers: stm32_fmc2_nand: fix incorrect error detection
Clear interrupt flag register after each sector read to avoid
issue when checking the register status.
Without clearing the interrupt, the status read doesn't wait
properly the ready bit.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Change-Id: If290e3f165b986f0e736bb1b5e4d3dad4b749d74
1 parent bb68a9d commit 44966000ec11e22ae2d580d0291d6e1cd613895d
@Lionel Debieve Lionel Debieve authored on 5 Oct 2020
Showing 1 changed file
View
drivers/st/fmc/stm32_fmc2_nand.c