Skip to content

Commit

Permalink
clk: lan966x: Fix the lan966x clock gate register address
Browse files Browse the repository at this point in the history
The register address used for the clock gate register is the base
register address coming from first reg map (ie. the generic
clock registers) instead of the second reg map defining the clock
gate register.

Use the correct clock gate register address.

Fixes: 5ad5915 ("clk: lan966x: Extend lan966x clock driver for clock gating support")
Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20220704102845.168438-2-herve.codina@bootlin.com
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Tested-by: Michael Walle <michael@walle.cc>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Herve Codina authored and Stephen Boyd committed Jul 19, 2022
1 parent a79e69c commit 25c2a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/clk-lan966x.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static int lan966x_gate_clk_register(struct device *dev,

hw_data->hws[i] =
devm_clk_hw_register_gate(dev, clk_gate_desc[idx].name,
"lan966x", 0, base,
"lan966x", 0, gate_base,
clk_gate_desc[idx].bit_idx,
0, &clk_gate_lock);

Expand Down

0 comments on commit 25c2a07

Please sign in to comment.