mmc: meson-gx: fix mux mask definition
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 21 Aug 2017 16:02:46 +0000 (18:02 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:41 +0000 (15:03 +0200)
CCF generic mux will shift the mask using the value defined in shift
Define the mask accordingly

Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/meson-gx-mmc.c

index de962c2d5e000a834bc40064be3bbe426e55bf5a..4217287923d44681d34c636653bb21d1243e2834 100644 (file)
@@ -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;