Skip to content

Commit 130b4bd

Browse files
jbrun3tstorulf
authored andcommitted
mmc: meson-gx: remove CLK_DIVIDER_ALLOW_ZERO clock flag
Remove CLK_DIVIDER_ALLOW_ZERO. This flag means that a 1 based divider with a 0 value will behave as a bypass clock The mmc divider does not behave like this, a 0 value disables the clock Remove this flag so CCF never allows a 0 value on this clock Fixes: 51c5d84 ("MMC: meson: initial support for GX platforms") Reviewed-by: Kevin Hilman <[email protected]> Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent c1d04ca commit 130b4bd

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
@@ -389,7 +389,7 @@ static int meson_mmc_clk_init(struct meson_host *host)
389389
host->cfg_div.width = __builtin_popcountl(CLK_DIV_MASK);
390390
host->cfg_div.hw.init = &init;
391391
host->cfg_div.flags = CLK_DIVIDER_ONE_BASED |
392-
CLK_DIVIDER_ROUND_CLOSEST | CLK_DIVIDER_ALLOW_ZERO;
392+
CLK_DIVIDER_ROUND_CLOSEST;
393393

394394
host->cfg_div_clk = devm_clk_register(host->dev, &host->cfg_div.hw);
395395
if (WARN_ON(PTR_ERR_OR_ZERO(host->cfg_div_clk)))

0 commit comments

Comments
 (0)