From 1b372a55ccaa0fb8179174a92c65f8822d35a9cf Mon Sep 17 00:00:00 2001 From: Fotis Panagiotopoulos Date: Sat, 11 Feb 2023 15:23:41 +0200 Subject: [PATCH] stm32_sdio: Fix in SDIO clocking configuration. --- arch/arm/src/stm32/stm32_sdio.c | 2 +- arch/arm/src/stm32f7/stm32_sdmmc.c | 2 +- arch/arm/src/stm32h7/stm32_sdmmc.c | 2 +- arch/arm/src/stm32l4/stm32l4_sdmmc.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/stm32/stm32_sdio.c b/arch/arm/src/stm32/stm32_sdio.c index e6ab5a26f5..bd84b87725 100644 --- a/arch/arm/src/stm32/stm32_sdio.c +++ b/arch/arm/src/stm32/stm32_sdio.c @@ -1749,7 +1749,7 @@ static void stm32_clock(struct sdio_dev_s *dev, enum sdio_clock_e rate) default: case CLOCK_SDIO_DISABLED: clckr = STM32_CLCKCR_INIT; - return; + break; /* Enable in initial ID mode clocking (<400KHz) */ diff --git a/arch/arm/src/stm32f7/stm32_sdmmc.c b/arch/arm/src/stm32f7/stm32_sdmmc.c index 1277aba441..d71a401a51 100644 --- a/arch/arm/src/stm32f7/stm32_sdmmc.c +++ b/arch/arm/src/stm32f7/stm32_sdmmc.c @@ -2009,7 +2009,7 @@ static void stm32_clock(struct sdio_dev_s *dev, enum sdio_clock_e rate) default: case CLOCK_SDIO_DISABLED: clckr = STM32_CLCKCR_INIT; - return; + break; /* Enable in initial ID mode clocking (<400KHz) */ diff --git a/arch/arm/src/stm32h7/stm32_sdmmc.c b/arch/arm/src/stm32h7/stm32_sdmmc.c index 91885fb1e5..b026f5c0b2 100644 --- a/arch/arm/src/stm32h7/stm32_sdmmc.c +++ b/arch/arm/src/stm32h7/stm32_sdmmc.c @@ -2069,7 +2069,7 @@ static void stm32_clock(struct sdio_dev_s *dev, enum sdio_clock_e rate) default: case CLOCK_SDIO_DISABLED: clckr = STM32_CLCKCR_INIT; - return; + break; /* Enable in initial ID mode clocking (<400KHz) */ diff --git a/arch/arm/src/stm32l4/stm32l4_sdmmc.c b/arch/arm/src/stm32l4/stm32l4_sdmmc.c index 8a8bf1da7c..d55ee98851 100644 --- a/arch/arm/src/stm32l4/stm32l4_sdmmc.c +++ b/arch/arm/src/stm32l4/stm32l4_sdmmc.c @@ -1804,7 +1804,7 @@ static void stm32_clock(struct sdio_dev_s *dev, enum sdio_clock_e rate) default: case CLOCK_SDIO_DISABLED: clckr = STM32_CLCKCR_INIT; - return; + break; /* Enable in initial ID mode clocking (<400KHz) */