Commit 6fec777c authored by Imre Deak's avatar Imre Deak

drm/dp_mst: Use DP_MST_LOGICAL_PORT_0 instead of magic number

Use the macro defined for the first logical port instead of the
corresponding magic number.

Cc: Lyude Paul <lyude@redhat.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210201120145.350258-4-imre.deak@intel.com
parent e0305024
...@@ -4219,9 +4219,8 @@ drm_dp_mst_detect_port(struct drm_connector *connector, ...@@ -4219,9 +4219,8 @@ drm_dp_mst_detect_port(struct drm_connector *connector,
case DP_PEER_DEVICE_SST_SINK: case DP_PEER_DEVICE_SST_SINK:
ret = connector_status_connected; ret = connector_status_connected;
/* for logical ports - cache the EDID */ /* for logical ports - cache the EDID */
if (port->port_num >= 8 && !port->cached_edid) { if (port->port_num >= DP_MST_LOGICAL_PORT_0 && !port->cached_edid)
port->cached_edid = drm_get_edid(connector, &port->aux.ddc); port->cached_edid = drm_get_edid(connector, &port->aux.ddc);
}
break; break;
case DP_PEER_DEVICE_DP_LEGACY_CONV: case DP_PEER_DEVICE_DP_LEGACY_CONV:
if (port->ldps) if (port->ldps)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment