We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8ce27 commit a87259aCopy full SHA for a87259a
drivers/disk/sdmmc_stm32.c
@@ -713,10 +713,17 @@ static int stm32_sdmmc_pwr_on(struct stm32_sdmmc_priv *priv)
713
714
static int stm32_sdmmc_pwr_off(struct stm32_sdmmc_priv *priv)
715
{
716
+ int err;
717
+
718
if (!priv->pe.port) {
719
return 0;
720
}
721
722
+ /* PINCTRL sleep mode when powered down */
723
+ err = pinctrl_apply_state(priv->pcfg, PINCTRL_STATE_SLEEP);
724
+ if ((err != 0) && (err != -ENOENT)) {
725
+ LOG_WRN("Failed to apply pin sleep states");
726
+ }
727
gpio_pin_configure_dt(&priv->pe, GPIO_OUTPUT_INACTIVE);
728
729
0 commit comments