Skip to content

Commit c1d04ca

Browse files
jbrun3tstorulf
authored andcommitted
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 <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 2fe20ba commit c1d04ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/meson-gx-mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static int meson_mmc_clk_init(struct meson_host *host)
366366
init.num_parents = MUX_CLK_NUM_PARENTS;
367367
host->mux.reg = host->regs + SD_EMMC_CLOCK;
368368
host->mux.shift = __bf_shf(CLK_SRC_MASK);
369-
host->mux.mask = CLK_SRC_MASK;
369+
host->mux.mask = CLK_SRC_MASK >> host->mux.shift;
370370
host->mux.flags = 0;
371371
host->mux.table = NULL;
372372
host->mux.hw.init = &init;

0 commit comments

Comments
 (0)