From: Jaehoon Chung <jh80.chung@samsung.com>
Date: Wed, 14 Jan 2015 08:37:53 +0000 (+0900)
Subject: mmc: dw_mmc: fixed the wrong bit control
X-Git-Tag: v2025.01-rc5-pxa1908~13736^2~6
X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=afc9e2b509a6db3b716c81c97f9147491ebf76ba;p=u-boot.git

mmc: dw_mmc: fixed the wrong bit control

If mode is not DDR-mode, then it needs to clear it.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---

diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
index b18c75dee2..76fa0b0534 100644
--- a/drivers/mmc/dw_mmc.c
+++ b/drivers/mmc/dw_mmc.c
@@ -321,7 +321,7 @@ static void dwmci_set_ios(struct mmc *mmc)
 	if (mmc->ddr_mode)
 		regs |= DWMCI_DDR_MODE;
 	else
-		regs &= DWMCI_DDR_MODE;
+		regs &= ~DWMCI_DDR_MODE;
 
 	dwmci_writel(host, DWMCI_UHS_REG, regs);