Re: [PATCH] mmc: dw_mmc: fixed a wrong UHS_REG 16 bit clear

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Plz add the commit message and CC'd Mr.Seungwon.

On 02/22/2013 09:32 AM, Hyeonsu Kim wrote:
> Signed-off-by: Hyeonsu Kim <hyeonsu.kim@xxxxxxxxxxx>
> ---
>  drivers/mmc/host/dw_mmc.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index 323c502..390c15c 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -789,9 +789,9 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
>  
>  	/* DDR mode set */
>  	if (ios->timing == MMC_TIMING_UHS_DDR50)
> -		regs |= (0x1 << slot->id) << 16;
> +		regs |= ((0x1 << slot->id) << 16);
>  	else
> -		regs &= ~(0x1 << slot->id) << 16;
> +		regs &= ~((0x1 << slot->id) << 16);
>  
>  	mci_writel(slot->host, UHS_REG, regs);
>  
> 

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux