Skip to content

Commit

Permalink
clk: x86: Fix clk_gate_flags for RV_CLK_GATE
Browse files Browse the repository at this point in the history
In newer SoC we have to clear bit for disabling 48MHz oscillator
clock gate. Remove CLK_GATE_SET_TO_DISABLE flag for proper enable
and disable of 48MHz clock.

Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Reviewed-by: Mario Limonciello <Mario.Limonciello@amd.com>
Link: https://lore.kernel.org/r/20211212180527.1641362-6-AjitKumar.Pandey@amd.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Ajit Kumar Pandey authored and Stephen Boyd committed Jan 7, 2022
1 parent c33917b commit 1fdaaa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/x86/clk-fch.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static int fch_clk_probe(struct platform_device *pdev)

hws[CLK_GATE_FIXED] = clk_hw_register_gate(NULL, "oscout1",
"clk48MHz", 0, fch_data->base + MISCCLKCNTL1,
OSCCLKENB, CLK_GATE_SET_TO_DISABLE, NULL);
OSCCLKENB, 0, NULL);

devm_clk_hw_register_clkdev(&pdev->dev, hws[CLK_GATE_FIXED],
fch_data->name, NULL);
Expand Down

0 comments on commit 1fdaaa1

Please sign in to comment.