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

Commit ce88fa6b authored by Jin Li's avatar Jin Li
Browse files

drm/sde: don't return error when fail to set panel pin ctrl



Panel pin control is not mandatory for all of the DSI panels.
If the panel is using bridge chips, such as ADV7533, it doesn't
have to configure the panel pin controls.

Change-Id: I48d862a9c67d52c0ed8c3c0309b0ff56d13e97f4
Signed-off-by: default avatarJin Li <jinl@codeaurora.org>
parent 50d1c65c
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -170,10 +170,12 @@ static int dsi_panel_set_pinctrl_state(struct dsi_panel *panel, bool enable)
	else
		state = panel->pinctrl.suspend;

	if (panel->pinctrl.pinctrl && state) {
		rc = pinctrl_select_state(panel->pinctrl.pinctrl, state);
		if (rc)
		pr_err("[%s] failed to set pin state, rc=%d\n", panel->name,
		       rc);
			pr_err("[%s] failed to set pin state, rc=%d\n",
				panel->name, rc);
	}

	return rc;
}
@@ -1603,10 +1605,8 @@ int dsi_panel_drv_init(struct dsi_panel *panel,
	}

	rc = dsi_panel_pinctrl_init(panel);
	if (rc) {
	if (rc)
		pr_err("[%s] failed to init pinctrl, rc=%d\n", panel->name, rc);
		goto error_vreg_put;
	}

	rc = dsi_panel_gpio_request(panel);
	if (rc) {