[U-Boot] [PATCH] mmc: s5p: properly mask SELBASECLK

Pantelis Antoniou panto at antoniou-consulting.com
Wed Mar 18 08:52:33 CET 2015


Hi Matt,

> On Feb 23, 2015, at 23:52 , Matt Reimer <mreimer at sdgsystems.com> wrote:
> 
> Properly mask SELBASECLK by using an actual mask rather than the
> number of bits to shift in order to create the mask.
> 
> Signed-off-by: Matt Reimer <mreimer at sdgsystems.com>
> ---
> drivers/mmc/s5p_sdhci.c |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
> index 3899372..0eec731 100644
> --- a/drivers/mmc/s5p_sdhci.c
> +++ b/drivers/mmc/s5p_sdhci.c
> @@ -30,7 +30,7 @@ static void s5p_sdhci_set_control_reg(struct sdhci_host *host)
> 	sdhci_writel(host, SDHCI_CTRL4_DRIVE_MASK(0x3), SDHCI_CONTROL4);
> 
> 	val = sdhci_readl(host, SDHCI_CONTROL2);
> -	val &= SDHCI_CTRL2_SELBASECLK_SHIFT;
> +	val &= SDHCI_CTRL2_SELBASECLK_MASK(3);
> 
> 	val |=	SDHCI_CTRL2_ENSTAASYNCCLR |
> 		SDHCI_CTRL2_ENCMDCNFMSK |
> -- 
> 1.7.9.5
> 

Thanks, applied.

— Pantelis



More information about the U-Boot mailing list