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

Commit 42d4bd37 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Matt Wagantall
Browse files

msm: mdss: avoid check for ctl path number for sending panel commands



For command mode, we check for control path number to send the panel
OFF/LP1/LP2 commands. This causes issues when a command mode panel
is not driven on control path #0. Modify the check to make sure panel
commands are sent properly for all use cases using the split display
validity APIs.

Change-Id: Icbcf775020d4f65dc8bad8b3a84534842d114f0b
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent d687a929
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1273,7 +1273,8 @@ int mdss_mdp_cmd_stop(struct mdss_mdp_ctl *ctl, int panel_power_state)
	}

panel_events:
	if ((ctl->num == 0) && send_panel_events) {
	if ((!is_panel_split(ctl->mfd) || is_pingpong_split(ctl->mfd) ||
		(is_panel_split(ctl->mfd) && sctl)) && send_panel_events) {
		pr_debug("%s: send panel events\n", __func__);
		ret = mdss_mdp_ctl_intf_event(ctl, MDSS_EVENT_BLANK,
				(void *) (long int) panel_power_state);