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

Commit f65530a9 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: ignore panel disable failure"

parents 5eb4a8ea e3a41a9f
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -3746,14 +3746,19 @@ int dsi_panel_disable(struct dsi_panel *panel)
	if (!atomic_read(&panel->esd_recovery_pending)) {
		rc = dsi_panel_tx_cmd_set(panel, DSI_CMD_SET_OFF);
		if (rc) {
			pr_err("[%s] failed to send DSI_CMD_SET_OFF cmds, rc=%d\n",
			/*
			 * Sending panel off commands may fail when  DSI
			 * controller is in a bad state. These failures can be
			 * ignored since controller will go for full reset on
			 * subsequent display enable anyway.
			 */
			pr_warn_ratelimited("[%s] failed to send DSI_CMD_SET_OFF cmds, rc=%d\n",
					panel->name, rc);
			goto error;
			rc = 0;
		}
	}
	panel->panel_initialized = false;

error:
	mutex_unlock(&panel->panel_lock);
	return rc;
}