OSDN Git Service

clk: renesas: div6: Consider all parents for requested rate
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 1 Apr 2021 13:01:37 +0000 (15:01 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 11 May 2021 07:58:13 +0000 (09:58 +0200)
commit1c924fc679123e6057239693d226c8d8c5780626
tree8dc911dc69921aa64f89a9e57eb37fb8dba6d449
parentc9d1b58b272e272fc7121929e2d0e0755ea1656e
clk: renesas: div6: Consider all parents for requested rate

Currently the .determine_rate() callback considers only the current
parent clock, limiting the range of achievable clock rates on DIV6
clocks with multiple parents, as found on SH/R-Mobile SoCs.

Extend the callback to consider all available parent clocks.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/60e639692b462f99e0b6ab868c3675b3d97dbdb0.1617281699.git.geert+renesas@glider.be
drivers/clk/renesas/clk-div6.c