arch/arm/src/stm32h7/stm32_sdmmc.c: Fix wrong selection in modifying the conflict.

This commit is contained in:
Gregory Nutt 2020-05-15 15:40:39 -06:00 committed by Abdelatif Guettouche
parent 671191d7a1
commit e6a984dc2b

View File

@ -1526,17 +1526,6 @@ static void stm32_endtransfer(struct stm32_dev_s *priv,
sdmmc_putreg32(priv, STM32_SDMMC_XFRDONE_ICR, STM32_SDMMC_ICR_OFFSET);
#if defined(CONFIG_STM32H7_SDMMC_IDMA) && \
!defined(CONFIG_ARCH_HAVE_SDIO_DELAYED_INVLDT)
/* invalidate dcache in case of DMA receive. */
if (priv->receivecnt)
{
up_invalidate_dcache((uintptr_t)priv->buffer,
(uintptr_t)priv->buffer + priv->remaining);
}
#endif
/* DMA debug instrumentation */
stm32_sample(priv, SAMPLENDX_END_TRANSFER);