]> git.baikalelectronics.ru Git - uboot.git/commit
clk: ccf: mux: change the get_rate helper
authorDario Binacchi <dariobin@libero.it>
Wed, 3 Jun 2020 13:36:25 +0000 (15:36 +0200)
committerLukasz Majewski <lukma@denx.de>
Mon, 24 Aug 2020 09:03:26 +0000 (11:03 +0200)
commit24064745aff8d7fca48b4424f98e7ec7b4524a57
treeae79e25d72749366f6f39d49c47594168f37722b
parent72da6c6c228e9d2c861c3d6f59ce4d09ee84256c
clk: ccf: mux: change the get_rate helper

The previous version of the get_rate helper does not work if the mux
clock parent is changed after the probe. This error has not been
detected because this condition has not been tested. The error occurs
because the set_parent helper does not change the parent of the clock
device but only the clock selection register. Since changing the parent
of a probed device can be tricky, the new version of the get_rate helper
provides the rate of the selected clock and not that of the parent.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
drivers/clk/clk-mux.c
test/dm/clk_ccf.c