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

Commit 6efdf367 authored by Padmanabhan Komanduru's avatar Padmanabhan Komanduru Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Request for TE GPIO only for command mode panel



There is a possibility that a board has TE GPIO in dts file and we
request and use it in video mode also. Hence, request and enable the
TE GPIO only when panel is in command mode.

Change-Id: I89b9b89f569f341940d2b0471fc8bea0345dffb6
Signed-off-by: default avatarPadmanabhan Komanduru <pkomandu@codeaurora.org>
parent 7894b6d1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1187,7 +1187,8 @@ int dsi_panel_device_register(struct device_node *pan_node,
			       __func__, __LINE__);
	}

	if (gpio_is_valid(ctrl_pdata->disp_te_gpio)) {
	if (gpio_is_valid(ctrl_pdata->disp_te_gpio) &&
					pinfo->type == MIPI_CMD_PANEL) {
		rc = gpio_request(ctrl_pdata->disp_te_gpio, "disp_te");
		if (rc) {
			pr_err("request TE gpio failed, rc=%d\n",