[PATCH] drm/i915: Update dfp caps only if branch device present
Ankit Nautiyal
ankit.k.nautiyal at intel.com
Thu Feb 4 09:40:47 UTC 2021
Early return from dfp_update if no branch device is present.
This also avoids Dbg msg for DFP caps for DP with no branch devices
and also for eDP connector.
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index 8c12d5375607..34b66eb04435 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -5259,6 +5259,9 @@ intel_dp_update_dfp(struct intel_dp *intel_dp,
struct drm_i915_private *i915 = dp_to_i915(intel_dp);
struct intel_connector *connector = intel_dp->attached_connector;
+ if (!drm_dp_is_branch(intel_dp->dpcd))
+ return;
+
intel_dp->dfp.max_bpc =
drm_dp_downstream_max_bpc(intel_dp->dpcd,
intel_dp->downstream_ports, edid);
--
2.29.2
More information about the Intel-gfx-trybot
mailing list