]> git.baikalelectronics.ru Git - arm-tf.git/commit
drivers: stm32_fmc2_nand: fix incorrect error detection
authorLionel Debieve <lionel.debieve@st.com>
Mon, 5 Oct 2020 12:24:04 +0000 (14:24 +0200)
committerLionel Debieve <lionel.debieve@st.com>
Thu, 8 Oct 2020 07:42:04 +0000 (09:42 +0200)
commit44966000ec11e22ae2d580d0291d6e1cd613895d
tree5924f78509e4a8c5367d53cf60536b67322cd5e6
parentbb68a9d602e456dad89fbfc777cb435059d42964
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
drivers/st/fmc/stm32_fmc2_nand.c