Message ID | 20240910-fix_clk-v1-1-111443baaeaa@amlogic.com (mailing list archive) |
---|---|
State | Under Review |
Headers | show |
Series | clk: Fix invalid execution of clk_set_rate | expand |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 285ed1ad8a37..79b453b82528 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2536,7 +2536,7 @@ static int clk_core_set_rate_nolock(struct clk_core *core, rate = clk_core_req_round_rate_nolock(core, req_rate); /* bail early if nothing to do */ - if (rate == clk_core_get_rate_nolock(core)) + if (rate == clk_core_get_rate_recalc(core)) return 0; /* fail on a direct rate set of a protected provider */