]> git.baikalelectronics.ru Git - kernel.git/commit
clk: st: clkgen-fsyn: search reg within node or parent
authorAlain Volmat <avolmat@me.com>
Sat, 18 Dec 2021 21:11:56 +0000 (22:11 +0100)
committerStephen Boyd <sboyd@kernel.org>
Thu, 6 Jan 2022 01:21:28 +0000 (17:21 -0800)
commit8096599f0ff0368a8b7c0be458e473dd8be08ce0
treed8a6b80c7d3da0384dcd9ae37917d88a4a81385d
parent40a9af63ae9ec42386d6c40b14f92fb56557c9a8
clk: st: clkgen-fsyn: search reg within node or parent

In order to avoid having duplicated addresses within the DT,
only have one unit-address per clockgen and each driver within
the clockgen should look at the parent node (overall clockgen)
to figure out the reg property.  Such behavior is already in
place in other STi platform clock drivers such as clk-flexgen
and clkgen-pll.  Keep backward compatibility by first looking
at reg within the node before looking into the parent node.

Signed-off-by: Alain Volmat <avolmat@me.com>
Link: https://lore.kernel.org/r/20211218211157.188214-2-avolmat@me.com
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/st/clkgen-fsyn.c