]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
drm/dp/mst: add some defines for logical/physical ports
authorDave Airlie <airlied@redhat.com>
Thu, 1 Oct 2015 06:28:25 +0000 (16:28 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Oct 2015 05:34:42 +0000 (15:34 +1000)
This just removes the magic number.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_dp_mst_topology.c
include/drm/drm_dp_helper.h

index 3084b3a7aeb3b3e3a794d9620a5f5b0d9bbf03df..bf27a07dbce36993e7ed668ff567f5565a6e0995 100644 (file)
@@ -1125,7 +1125,7 @@ static void drm_dp_add_port(struct drm_dp_mst_branch *mstb,
                        drm_dp_put_port(port);
                        goto out;
                }
-               if (port->port_num >= 8) {
+               if (port->port_num >= DP_MST_LOGICAL_PORT_0) {
                        port->cached_edid = drm_get_edid(port->connector, &port->aux.ddc);
                        drm_mode_connector_set_tile_property(port->connector);
                }
index 499e9f625aeffb2f618458b45121a6a6286e6e3e..0212d139a480909a216da244ffd8aadf6effa630 100644 (file)
 #define MODE_I2C_READ  4
 #define MODE_I2C_STOP  8
 
+/* DP 1.2 MST PORTs - Section 2.5.1 v1.2a spec */
+#define DP_MST_PHYSICAL_PORT_0 0
+#define DP_MST_LOGICAL_PORT_0 8
+
 #define DP_LINK_STATUS_SIZE       6
 bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE],
                          int lane_count);