Skip to contentSkip to conversation

drm/i915/dp: remove redundant link state check

PATCH New [email protected] 1 participant 1 message Aug 26

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/dp: remove redundant link state check

From: tarun-tarun143 <[email protected]>

The DP link state is checked and recovered through the encoder link check work from the modeset and HPD paths.

The detect handler also used to queue the same link check work for non-eDP sinks. This was added when link recovery was moved to the encoder's check link state work, and the original change explicitly left a TODO to remove the detect-time check once it became redundant.

Remove the detect-time link state check and rely on the existing link recovery paths.

---
 drivers/gpu/drm/i915/display/intel_dp.c | 12 ------------
 1 file changed, 12 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +0 -12
index 113d767e62e9..ffd39206b958 100644
@@ -6379,18 +6379,6 @@ intel_dp_detect(struct drm_connector *_connector,
 		status = connector_status_disconnected;
 		goto out_unset_edid;
 	}
-
-	/*
-	 * Some external monitors do not signal loss of link synchronization
-	 * with an IRQ_HPD, so force a link status check.
-	 *
-	 * TODO: this probably became redundant, so remove it: the link state
-	 * is rechecked/recovered now after modesets, where the loss of
-	 * synchronization tends to occur.
-	 */
-	if (!intel_dp_is_edp(intel_dp))
-		intel_dp_check_link_state(intel_dp);
-
 	/*
 	 * Clearing NACK and defer counts to get their exact values
 	 * while reading EDID which are required by Compliance tests
Signature · 1 line
2.43.0