File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -360,16 +360,21 @@ 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 , u8 * dpcd )
363
+ static int msm_dp_display_lttpr_init (struct msm_dp_display_private * dp , u8 * dpcd )
364
364
{
365
- int rc ;
365
+ int rc , lttpr_count ;
366
366
367
367
if (drm_dp_read_lttpr_common_caps (dp -> aux , dpcd , dp -> link -> lttpr_common_caps ))
368
- return ;
368
+ return 0 ;
369
369
370
- rc = drm_dp_lttpr_init (dp -> aux , drm_dp_lttpr_count (dp -> link -> lttpr_common_caps ));
371
- if (rc )
370
+ lttpr_count = drm_dp_lttpr_count (dp -> link -> lttpr_common_caps );
371
+ rc = drm_dp_lttpr_init (dp -> aux , lttpr_count );
372
+ if (rc ) {
372
373
DRM_ERROR ("failed to set LTTPRs transparency mode, rc=%d\n" , rc );
374
+ return 0 ;
375
+ }
376
+
377
+ return lttpr_count ;
373
378
}
374
379
375
380
static int msm_dp_display_process_hpd_high (struct msm_dp_display_private * dp )
@@ -383,7 +388,7 @@ static int msm_dp_display_process_hpd_high(struct msm_dp_display_private *dp)
383
388
if (rc )
384
389
goto end ;
385
390
386
- msm_dp_display_lttpr_init (dp , dpcd );
391
+ dp -> link -> lttpr_count = msm_dp_display_lttpr_init (dp , dpcd );
387
392
388
393
rc = msm_dp_panel_read_sink_caps (dp -> panel , connector );
389
394
if (rc )
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ struct msm_dp_link_phy_params {
62
62
63
63
struct msm_dp_link {
64
64
u8 lttpr_common_caps [DP_LTTPR_COMMON_CAP_SIZE ];
65
+ int lttpr_count ;
65
66
66
67
u32 sink_request ;
67
68
u32 test_response ;
You can’t perform that action at this time.
0 commit comments