diff options
| author | Imre Deak <[email protected]> | 2024-04-16 22:10:07 +0000 |
|---|---|---|
| committer | Imre Deak <[email protected]> | 2024-04-19 14:20:53 +0000 |
| commit | ca5d9d78f0a2c595561bce7cce4b86b42ca7042f (patch) | |
| tree | 7cf61eb1573f9a59402768865eba1c9e1aae1a20 /include/drm/display/drm_dp_mst_helper.h | |
| parent | drm/dp: Add drm_dp_128b132b_supported() (diff) | |
| download | kernel-ca5d9d78f0a2c595561bce7cce4b86b42ca7042f.tar.gz kernel-ca5d9d78f0a2c595561bce7cce4b86b42ca7042f.zip | |
drm/dp_mst: Factor out drm_dp_mst_port_is_logical()
Factor out a function to check if an MST port is logical, used by a
follow-up i915 patch in the patchset.
v2: Move drm_dp_mst_aux_for_parent() forward declaration to the next
patch. (Ankit)
Cc: Lyude Paul <[email protected]>
Cc: [email protected]
Reviewed-by: Ankit Nautiyal <[email protected]>
Acked-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'include/drm/display/drm_dp_mst_helper.h')
| -rw-r--r-- | include/drm/display/drm_dp_mst_helper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/display/drm_dp_mst_helper.h b/include/drm/display/drm_dp_mst_helper.h index 3c9e128c444a..48fd1b448149 100644 --- a/include/drm/display/drm_dp_mst_helper.h +++ b/include/drm/display/drm_dp_mst_helper.h @@ -949,6 +949,12 @@ int __must_check drm_dp_mst_root_conn_atomic_check(struct drm_connector_state *n void drm_dp_mst_get_port_malloc(struct drm_dp_mst_port *port); void drm_dp_mst_put_port_malloc(struct drm_dp_mst_port *port); +static inline +bool drm_dp_mst_port_is_logical(struct drm_dp_mst_port *port) +{ + return port->port_num >= DP_MST_LOGICAL_PORT_0; +} + struct drm_dp_aux *drm_dp_mst_dsc_aux_for_port(struct drm_dp_mst_port *port); static inline struct drm_dp_mst_topology_state * |
