msm: mdss: enable dsi clock during HS clock lane recovery
DSI registers are accessed during HS clock lane recovery. Therefore related dsi clocks need to enabled at that time. CRs-Fixed: 789721 Change-Id: Ie953054d30fcd8f0dbc58e26c5dd11d59f582419 Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
This commit is contained in:
parent
30b06c97b9
commit
9be8a7be57
1 changed files with 4 additions and 0 deletions
|
@ -520,6 +520,7 @@ static void mdss_dsi_wait_clk_lane_to_stop(struct mdss_dsi_ctrl_pdata *ctrl)
|
|||
static void mdss_dsi_start_hs_clk_lane(struct mdss_dsi_ctrl_pdata *ctrl)
|
||||
{
|
||||
mutex_lock(&ctrl->clk_lane_mutex);
|
||||
mdss_dsi_clk_ctrl(ctrl, DSI_ALL_CLKS, 1);
|
||||
if (ctrl->clk_lane_cnt) {
|
||||
pr_err("%s: ndx=%d do-wait, cnt=%d\n",
|
||||
__func__, ctrl->ndx, ctrl->clk_lane_cnt);
|
||||
|
@ -531,6 +532,7 @@ static void mdss_dsi_start_hs_clk_lane(struct mdss_dsi_ctrl_pdata *ctrl)
|
|||
ctrl->clk_lane_cnt++;
|
||||
pr_debug("%s: ndx=%d, set_hs, cnt=%d\n", __func__,
|
||||
ctrl->ndx, ctrl->clk_lane_cnt);
|
||||
mdss_dsi_clk_ctrl(ctrl, DSI_ALL_CLKS, 0);
|
||||
mutex_unlock(&ctrl->clk_lane_mutex);
|
||||
}
|
||||
|
||||
|
@ -547,6 +549,7 @@ static void mdss_dsi_stop_hs_clk_lane(struct mdss_dsi_ctrl_pdata *ctrl,
|
|||
unsigned long flags;
|
||||
|
||||
mutex_lock(&ctrl->clk_lane_mutex);
|
||||
mdss_dsi_clk_ctrl(ctrl, DSI_ALL_CLKS, 1);
|
||||
if (ctrl->clk_lane_cnt != 1) {
|
||||
pr_err("%s: ndx=%d wait had been done, cnt=%d\n",
|
||||
__func__, ctrl->ndx, ctrl->clk_lane_cnt);
|
||||
|
@ -590,6 +593,7 @@ release:
|
|||
pr_debug("%s: ndx=%d, cnt=%d\n", __func__,
|
||||
ctrl->ndx, ctrl->clk_lane_cnt);
|
||||
|
||||
mdss_dsi_clk_ctrl(ctrl, DSI_ALL_CLKS, 0);
|
||||
mutex_unlock(&ctrl->clk_lane_mutex);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue