/* Set the SDMMC in power-cycle state. This will make that the SDMMC_D, SDMMC_CMD and SDMMC_CK are driven low, to prevent the card from being supplied through the signal lines.  */
static void stm32_sdmmc2_pwrcycle(struct stm32_sdmmc2_priv *priv)
/* Set the SDMMC in power-cycle state. This will make that the SDMMC_D, SDMMC_CMD and SDMMC_CK are driven low, to prevent the card from being supplied through the signal lines.  */
static void stm32_sdmmc2_pwrcycle(struct stm32_sdmmc2_priv *priv)
{
	if ((readl(priv->base + SDMMC_POWER) & SDMMC_POWER_PWRCTRL_MASK) ==
	    SDMMC_POWER_PWRCTRL_CYCLE)
		return;
	stm32_sdmmc2_reset(priv);
}