[U-Boot] [PATCH] mmc: dw_mmc: fixed the wrong bit control

Pantelis Antoniou panto at antoniou-consulting.com
Mon Feb 23 18:36:02 CET 2015


Hi Jaehoon,

> On Jan 14, 2015, at 10:37 , Jaehoon Chung <jh80.chung at samsung.com> wrote:
> 
> If mode is not DDR-mode, then it needs to clear it.
> 
> Signed-off-by: Jaehoon Chung <jh80.chung at samsung.com>
> ---
> drivers/mmc/dw_mmc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
> index b18c75d..76fa0b0 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);
> 
> -- 
> 1.9.1
> 

Applied, thanks

— Pantelis



More information about the U-Boot mailing list