]> git.baikalelectronics.ru Git - kernel.git/commit
Partially revert "clk: mvebu: Convert to clk_hw based provider APIs"
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 14 Oct 2015 18:23:09 +0000 (11:23 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Wed, 14 Oct 2015 18:28:17 +0000 (11:28 -0700)
commit9191af970c08f7dfc28d6e959541190c42ec8110
tree5e98407067ea20a5799f1e567faff6159acc0fb9
parentd2d37965d6129d71eb8e484ad9c84da980822d21
Partially revert "clk: mvebu: Convert to clk_hw based provider APIs"

This partially reverts commit aef498153eda74bce490e43d0aeb4d8e97b1b64b.

Thomas reports that it causes regressions on Armada XP devices.
This is because of_clk_get_parent_name() relies on the property
'clock-output-names' to resolve the name of a clock's parent,
without trying to get the clock from the framework and call
__clk_get_name(). Given that Armada XP devices don't have the
'clock-output-names' property, of_clk_get_parent_name() returns
the name of the node which doesn't match the actual parent
clock's name at all, causing CPU clocks to never link up with
their parents.

Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mvebu/clk-cpu.c