From: Jerome Brunet Date: Mon, 21 Aug 2017 16:02:46 +0000 (+0200) Subject: mmc: meson-gx: fix mux mask definition X-Git-Tag: v4.14-rc2~40^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1d04caa30ba77eef23c8263566c449751157583;p=platform%2Fkernel%2Flinux-exynos.git mmc: meson-gx: fix mux mask definition CCF generic mux will shift the mask using the value defined in shift Define the mask accordingly Reviewed-by: Kevin Hilman Signed-off-by: Jerome Brunet Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index de962c2..4217287 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -366,7 +366,7 @@ static int meson_mmc_clk_init(struct meson_host *host) init.num_parents = MUX_CLK_NUM_PARENTS; host->mux.reg = host->regs + SD_EMMC_CLOCK; host->mux.shift = __bf_shf(CLK_SRC_MASK); - host->mux.mask = CLK_SRC_MASK; + host->mux.mask = CLK_SRC_MASK >> host->mux.shift; host->mux.flags = 0; host->mux.table = NULL; host->mux.hw.init = &init;