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: Patrice Chotard <patrice.chotard@st.com>
This commit is contained in:
parent
7f7deb0c72
commit
635159a090
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue