Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 904ade9c authored by Shivaraj Shetty's avatar Shivaraj Shetty
Browse files

msm: mdss: Do not force commands on HS mode by default



Do not force the commands to be sent in HS mode, and let the
caller function set the mode as required. Make sure that the
panels which can recieve panel on/off commands only in LP
mode wont go to bad state due to this forcing.

Change-Id: I093978cb3bfd3022e4158c93d154e5c9fcb32e66
Signed-off-by: default avatarShivaraj Shetty <shivaraj@codeaurora.org>
parent f0778b70
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -905,14 +905,12 @@ void msm_dsi_cmdlist_commit(struct mdss_dsi_ctrl_pdata *ctrl, int from_mdp)
	}
	}


	msm_dsi_clk_ctrl(&ctrl->panel_data, 1);
	msm_dsi_clk_ctrl(&ctrl->panel_data, 1);
	dsi_set_tx_power_mode(0);


	if (req->flags & CMD_REQ_RX)
	if (req->flags & CMD_REQ_RX)
		msm_dsi_cmdlist_rx(ctrl, req);
		msm_dsi_cmdlist_rx(ctrl, req);
	else
	else
		msm_dsi_cmdlist_tx(ctrl, req);
		msm_dsi_cmdlist_tx(ctrl, req);


	dsi_set_tx_power_mode(1);
	msm_dsi_clk_ctrl(&ctrl->panel_data, 0);
	msm_dsi_clk_ctrl(&ctrl->panel_data, 0);


	mutex_unlock(&ctrl->cmd_mutex);
	mutex_unlock(&ctrl->cmd_mutex);