]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mmc: dw_mmc: fixed the wrong bit control
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 14 Jan 2015 08:37:53 +0000 (17:37 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:56 +0000 (13:53 +0200)
If mode is not DDR-mode, then it needs to clear it.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/dw_mmc.c

index b18c75dee2c815a7a9ddd82eac826109544cc3c0..76fa0b0534d1b5b135317ec2841b5bba7d472378 100644 (file)
@@ -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);