msm: mdss: enable clocks before doing SW reset during recovery
There can be unclocked register access during DSI FIFO empty error recovery case in command mode, so enable DSI core clocks prior to doing SW reset. Change-Id: Ic48561b979f1a13304dc2fa29f8008e8ff63c8ca Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
This commit is contained in:
parent
3c94a189b5
commit
17ec5026ba
1 changed files with 12 additions and 4 deletions
|
@ -2586,15 +2586,23 @@ static int dsi_event_thread(void *data)
|
|||
mdss_dsi_clk_ctrl(ctrl, ctrl->dsi_clk_handle,
|
||||
MDSS_DSI_ALL_CLKS,
|
||||
MDSS_DSI_CLK_OFF);
|
||||
}
|
||||
mutex_unlock(&ctrl->mutex);
|
||||
MDSS_XLOG_TOUT_HANDLER("mdp", "dsi0_ctrl",
|
||||
} else {
|
||||
MDSS_XLOG_TOUT_HANDLER("mdp", "dsi0_ctrl",
|
||||
"dsi0_phy", "dsi1_ctrl", "dsi1_phy", "vbif",
|
||||
"vbif_nrt", "dbg_bus", "vbif_dbg_bus", "panic");
|
||||
}
|
||||
mutex_unlock(&ctrl->mutex);
|
||||
}
|
||||
|
||||
if (todo & DSI_EV_DSI_FIFO_EMPTY)
|
||||
if (todo & DSI_EV_DSI_FIFO_EMPTY) {
|
||||
mdss_dsi_clk_ctrl(ctrl, ctrl->dsi_clk_handle,
|
||||
MDSS_DSI_CORE_CLK,
|
||||
MDSS_DSI_CLK_ON);
|
||||
mdss_dsi_sw_reset(ctrl, true);
|
||||
mdss_dsi_clk_ctrl(ctrl, ctrl->dsi_clk_handle,
|
||||
MDSS_DSI_CORE_CLK,
|
||||
MDSS_DSI_CLK_OFF);
|
||||
}
|
||||
|
||||
if (todo & DSI_EV_DLNx_FIFO_OVERFLOW) {
|
||||
mutex_lock(&dsi_mtx);
|
||||
|
|
Loading…
Add table
Reference in a new issue