A fix and future proofing for the sc598 clk pll driver#3436
Conversation
pll->half_m was only considered in the first calculation. It also missed to recalculate m for the case where the parent rate was too small and returned a too small value. (Additionally that value isn't even reachable with pll->half_m set.) Fixes: 8f0186b ("clock: adi: Add PLL driver for ADSP-SC5xx") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
The .round_rate() callback was superseded by .determine_rate() and the former is removed in v7.1-rc1. Prepare for the future and convert to the new callback that already works on 6.18.y. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
LLM reviewThis series fixes multiple bugs in the ADI SC5xx CGU PLL clock driver related to run: 29411476882
|
PR Description
While trying to update the adsp-6.18.31-y branch to a newer upstream version (here: 7.2-rc3) I found that the pll driver needs an adaption for a clk subsystem change that happend during the v7.1 merge window (specifically commit dc652a33cf08 ("clk: remove round_rate() clk ops"). While looking at the
.round_rate()callback I spotted the issues fixed in the first commit.PR Type
PR Checklist