File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2103,7 +2103,6 @@ static enum drm_connector_status mtk_dp_bdg_detect(struct drm_bridge *bridge)
2103
2103
struct mtk_dp * mtk_dp = mtk_dp_from_bridge (bridge );
2104
2104
enum drm_connector_status ret = connector_status_disconnected ;
2105
2105
bool enabled = mtk_dp -> enabled ;
2106
- u8 sink_count = 0 ;
2107
2106
2108
2107
if (!mtk_dp -> train_info .cable_plugged_in )
2109
2108
return ret ;
@@ -2118,8 +2117,8 @@ static enum drm_connector_status mtk_dp_bdg_detect(struct drm_bridge *bridge)
2118
2117
* function, we just need to check the HPD connection to check
2119
2118
* whether we connect to a sink device.
2120
2119
*/
2121
- drm_dp_dpcd_readb ( & mtk_dp -> aux , DP_SINK_COUNT , & sink_count );
2122
- if (DP_GET_SINK_COUNT ( sink_count ) )
2120
+
2121
+ if (drm_dp_read_sink_count ( & mtk_dp -> aux ) > 0 )
2123
2122
ret = connector_status_connected ;
2124
2123
2125
2124
if (!enabled )
You can’t perform that action at this time.
0 commit comments