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

Commit b3935a9a authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: deprecate force panel dead from connector



Deprecate force panel dead from connector structure. This is
already available as software simulated esd failure in display
structure.

Deprecated node:
/<debugfs-root>/dri/0/<connector>/force_panel_dead

Replacement node:
/<debugfs-root>/<active display>/esd_check_mode

Usage:
"echo esd_sw_sim_success> /d/<active display>/esd_check_mode"

Change-Id: Id72d529ed4f6fc8be6065c25239acd9aedf6c2a2
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
parent 9096b60e
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -1591,9 +1591,6 @@ static int sde_connector_init_debugfs(struct drm_connector *connector)
	sde_connector_get_info(connector, &info);
	if (sde_connector->ops.check_status &&
		(info.capabilities & MSM_DISPLAY_ESD_ENABLED)) {
		debugfs_create_u32("force_panel_dead", 0600,
				connector->debugfs_entry,
				&sde_connector->force_panel_dead);
		debugfs_create_u32("esd_status_interval", 0600,
				connector->debugfs_entry,
				&sde_connector->esd_status_interval);
@@ -1859,12 +1856,6 @@ static void sde_connector_check_status_work(struct work_struct *work)
	rc = conn->ops.check_status(&conn->base, conn->display, false);
	mutex_unlock(&conn->lock);

	if (conn->force_panel_dead) {
		conn->force_panel_dead--;
		if (!conn->force_panel_dead)
			goto status_dead;
	}

	if (rc > 0) {
		u32 interval;

@@ -1879,7 +1870,6 @@ static void sde_connector_check_status_work(struct work_struct *work)
		return;
	}

status_dead:
	_sde_connector_report_panel_dead(conn);
}

+0 −2
Original line number Diff line number Diff line
@@ -367,7 +367,6 @@ struct sde_connector_evt {
 * @event_lock: Lock object for event_table
 * @bl_device: backlight device node
 * @status_work: work object to perform status checks
 * @force_panel_dead: variable to trigger forced ESD recovery
 * @esd_status_interval: variable to change ESD check interval in millisec
 * @panel_dead: Flag to indicate if panel has gone bad
 * @esd_status_check: Flag to indicate if ESD thread is scheduled or not
@@ -414,7 +413,6 @@ struct sde_connector {

	struct backlight_device *bl_device;
	struct delayed_work status_work;
	u32 force_panel_dead;
	u32 esd_status_interval;
	bool panel_dead;
	bool esd_status_check;