mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
clk: at91: fix clk_programmable_set_parent()
Since commit1bdf02326b("clk: at91: make use of syscon/regmap internally"), clk_programmable_set_parent() is always selecting the first parent (AKA slow_clk), no matter what's passed in the 'index' parameter. Fix that by initializing the pckr variable to the index value. Signed-off-by: Boris Brezillon <[email protected]> Reported-by: Hans Verkuil <[email protected]> Fixes:1bdf02326b("clk: at91: make use of syscon/regmap internally") Cc: <[email protected]> Signed-off-by: Michael Turquette <[email protected]> Link: lkml.kernel.org/r/1468828152-18389-1-git-send-email-boris.brezillon@free-electrons.com
This commit is contained in:
parent
9d69286391
commit
f96423f483
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ static int clk_programmable_set_parent(struct clk_hw *hw, u8 index)
|
|||
struct clk_programmable *prog = to_clk_programmable(hw);
|
||||
const struct clk_programmable_layout *layout = prog->layout;
|
||||
unsigned int mask = layout->css_mask;
|
||||
unsigned int pckr = 0;
|
||||
unsigned int pckr = index;
|
||||
|
||||
if (layout->have_slck_mck)
|
||||
mask |= AT91_PMC_CSSMCK_MCK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue