Skip to content
Snippets Groups Projects
Commit 635159a0 authored by Patrice Chotard's avatar Patrice Chotard Committed by Tom Rini
Browse files

mmc: stm32_sdmmc2: Fix stm32_sdmmc2_start_cmd()


SDMMC_CMD_CPSMEN bit is wrongly check and set in
SDMMC_ARG register instead of SDMMC_CMD register.

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
parent 7f7deb0c
No related branches found
No related tags found
No related merge requests found
...@@ -235,8 +235,8 @@ static void stm32_sdmmc2_start_data(struct stm32_sdmmc2_priv *priv, ...@@ -235,8 +235,8 @@ static void stm32_sdmmc2_start_data(struct stm32_sdmmc2_priv *priv,
static void stm32_sdmmc2_start_cmd(struct stm32_sdmmc2_priv *priv, static void stm32_sdmmc2_start_cmd(struct stm32_sdmmc2_priv *priv,
struct mmc_cmd *cmd, u32 cmd_param) struct mmc_cmd *cmd, u32 cmd_param)
{ {
if (readl(priv->base + SDMMC_ARG) & SDMMC_CMD_CPSMEN) if (readl(priv->base + SDMMC_CMD) & SDMMC_CMD_CPSMEN)
writel(0, priv->base + SDMMC_ARG); writel(0, priv->base + SDMMC_CMD);
cmd_param |= cmd->cmdidx | SDMMC_CMD_CPSMEN; cmd_param |= cmd->cmdidx | SDMMC_CMD_CPSMEN;
if (cmd->resp_type & MMC_RSP_PRESENT) { if (cmd->resp_type & MMC_RSP_PRESENT) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment