Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3744415c authored by Shawn Lin's avatar Shawn Lin Committed by Ulf Hansson
Browse files

mmc: dw_mmc: fix err handle of dw_mci_probe



This patch add correct err handle if dw_mci_ctrl_reset
failed while probing.

Signed-off-by: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent e8cc37b8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3063,8 +3063,10 @@ int dw_mci_probe(struct dw_mci *host)
	}

	/* Reset all blocks */
	if (!dw_mci_ctrl_reset(host, SDMMC_CTRL_ALL_RESET_FLAGS))
		return -ENODEV;
	if (!dw_mci_ctrl_reset(host, SDMMC_CTRL_ALL_RESET_FLAGS)) {
		ret = -ENODEV;
		goto err_clk_ciu;
	}

	host->dma_ops = host->pdata->dma_ops;
	dw_mci_init_dma(host);