File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -360,12 +360,12 @@ static int msm_dp_display_send_hpd_notification(struct msm_dp_display_private *d
360
360
return 0 ;
361
361
}
362
362
363
- static void msm_dp_display_lttpr_init (struct msm_dp_display_private * dp )
363
+ static void msm_dp_display_lttpr_init (struct msm_dp_display_private * dp , u8 * dpcd )
364
364
{
365
365
u8 lttpr_caps [DP_LTTPR_COMMON_CAP_SIZE ];
366
366
int rc ;
367
367
368
- if (drm_dp_read_lttpr_common_caps (dp -> aux , dp -> panel -> dpcd , lttpr_caps ))
368
+ if (drm_dp_read_lttpr_common_caps (dp -> aux , dpcd , lttpr_caps ))
369
369
return ;
370
370
371
371
rc = drm_dp_lttpr_init (dp -> aux , drm_dp_lttpr_count (lttpr_caps ));
@@ -378,12 +378,17 @@ static int msm_dp_display_process_hpd_high(struct msm_dp_display_private *dp)
378
378
struct drm_connector * connector = dp -> msm_dp_display .connector ;
379
379
const struct drm_display_info * info = & connector -> display_info ;
380
380
int rc = 0 ;
381
+ u8 dpcd [DP_RECEIVER_CAP_SIZE ];
381
382
382
- rc = msm_dp_panel_read_sink_caps (dp -> panel , connector );
383
+ rc = drm_dp_read_dpcd_caps (dp -> aux , dpcd );
383
384
if (rc )
384
385
goto end ;
385
386
386
- msm_dp_display_lttpr_init (dp );
387
+ msm_dp_display_lttpr_init (dp , dpcd );
388
+
389
+ rc = msm_dp_panel_read_sink_caps (dp -> panel , connector );
390
+ if (rc )
391
+ goto end ;
387
392
388
393
msm_dp_link_process_request (dp -> link );
389
394
You can’t perform that action at this time.
0 commit comments