Skip to content
Permalink
Browse files

drivers: spi: spi_ll_stm32: Fix uncleared MODF flag

Clear raised MODF flag, if not done the flag stay set forever.

Fixes #17363

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
  • Loading branch information...
yboutreux authored and galak committed Jul 31, 2019
1 parent a56695d commit 3a6b46e26306a08ece34f55eaad7d2e3d82aafe6
Showing with 4 additions and 0 deletions.
  1. +4 −0 drivers/spi/spi_ll_stm32.c
@@ -196,6 +196,10 @@ static void spi_stm32_complete(struct spi_stm32_data *data, SPI_TypeDef *spi,
/* NOP */
}
}
/* BSY flag is cleared when MODF flag is raised */
if (LL_SPI_IsActiveFlag_MODF(spi)) {
LL_SPI_ClearFlag_MODF(spi);
}

LL_SPI_Disable(spi);

0 comments on commit 3a6b46e

Please sign in to comment.
You can’t perform that action at this time.