mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
clk: rockchip: fix up frac clk parent no update
For some special conditions, the parent clock of fractional is not updated correctly. before clk summary: clk_spdif2_dp0_src clk_spdif2_dp0 mclk_spdif2 mclk_spdif2_dp0 clk_spdif2_dp0_frac after clk summary: clk_spdif2_dp0_src clk_spdif2_dp0_frac clk_spdif2_dp0 mclk_spdif2 mclk_spdif2_dp0 Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com> Change-Id: I9e9027774bf25f0f0ea6d8df6491a7feef4ffc48
This commit is contained in:
@@ -154,6 +154,9 @@ static int rockchip_clk_frac_notifier_cb(struct notifier_block *nb,
|
|||||||
frac->mux_ops->set_parent(&frac_mux->hw,
|
frac->mux_ops->set_parent(&frac_mux->hw,
|
||||||
frac->mux_frac_idx);
|
frac->mux_frac_idx);
|
||||||
frac->rate_change_remuxed = 1;
|
frac->rate_change_remuxed = 1;
|
||||||
|
clk_hw_set_parent(&frac_mux->hw,
|
||||||
|
clk_hw_get_parent_by_index(&frac_mux->hw,
|
||||||
|
frac->mux_frac_idx));
|
||||||
}
|
}
|
||||||
} else if (event == POST_RATE_CHANGE) {
|
} else if (event == POST_RATE_CHANGE) {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user