File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -6010,6 +6010,22 @@ static bool drm_dp_mst_is_virtual_dpcd(struct drm_dp_mst_port *port)
6010
6010
return false;
6011
6011
}
6012
6012
6013
+ /**
6014
+ * drm_dp_mst_aux_for_parent() - Get the AUX device for an MST port's parent
6015
+ * @port: MST port whose parent's AUX device is returned
6016
+ *
6017
+ * Return the AUX device for @port's parent or NULL if port's parent is the
6018
+ * root port.
6019
+ */
6020
+ struct drm_dp_aux * drm_dp_mst_aux_for_parent (struct drm_dp_mst_port * port )
6021
+ {
6022
+ if (!port -> parent || !port -> parent -> port_parent )
6023
+ return NULL ;
6024
+
6025
+ return & port -> parent -> port_parent -> aux ;
6026
+ }
6027
+ EXPORT_SYMBOL (drm_dp_mst_aux_for_parent );
6028
+
6013
6029
/**
6014
6030
* drm_dp_mst_dsc_aux_for_port() - Find the correct aux for DSC
6015
6031
* @port: The port to check. A leaf of the MST tree with an attached display.
Original file line number Diff line number Diff line change @@ -955,6 +955,7 @@ bool drm_dp_mst_port_is_logical(struct drm_dp_mst_port *port)
955
955
return port -> port_num >= DP_MST_LOGICAL_PORT_0 ;
956
956
}
957
957
958
+ struct drm_dp_aux * drm_dp_mst_aux_for_parent (struct drm_dp_mst_port * port );
958
959
struct drm_dp_aux * drm_dp_mst_dsc_aux_for_port (struct drm_dp_mst_port * port );
959
960
960
961
static inline struct drm_dp_mst_topology_state *
You can’t perform that action at this time.
0 commit comments