Skip to content

Commit 8a20c97

Browse files
Robin Singhalexdeucher
authored andcommitted
drm/amd/display: removed unused function dc_link_reallocate_mst_payload.
[Why] Found that dc_link_reallocate_mst_payload is not used anymore in any of the use case scenario. [How] removed dc_link_reallocate_mst_payload function definition and declaration. Signed-off-by: Robin Singh <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 19a274f commit 8a20c97

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link.c

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3136,50 +3136,6 @@ static enum dc_status deallocate_mst_payload(struct pipe_ctx *pipe_ctx)
31363136
return DC_OK;
31373137
}
31383138

3139-
enum dc_status dc_link_reallocate_mst_payload(struct dc_link *link)
3140-
{
3141-
int i;
3142-
struct pipe_ctx *pipe_ctx;
3143-
3144-
// Clear all of MST payload then reallocate
3145-
for (i = 0; i < MAX_PIPES; i++) {
3146-
pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i];
3147-
3148-
/* driver enable split pipe for external monitors
3149-
* we have to check pipe_ctx is split pipe or not
3150-
* If it's split pipe, driver using top pipe to
3151-
* reaallocate.
3152-
*/
3153-
if (!pipe_ctx || pipe_ctx->top_pipe)
3154-
continue;
3155-
3156-
if (pipe_ctx->stream && pipe_ctx->stream->link == link &&
3157-
pipe_ctx->stream->dpms_off == false &&
3158-
pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
3159-
deallocate_mst_payload(pipe_ctx);
3160-
}
3161-
}
3162-
3163-
for (i = 0; i < MAX_PIPES; i++) {
3164-
pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i];
3165-
3166-
if (!pipe_ctx || pipe_ctx->top_pipe)
3167-
continue;
3168-
3169-
if (pipe_ctx->stream && pipe_ctx->stream->link == link &&
3170-
pipe_ctx->stream->dpms_off == false &&
3171-
pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) {
3172-
/* enable/disable PHY will clear connection between BE and FE
3173-
* need to restore it.
3174-
*/
3175-
link->link_enc->funcs->connect_dig_be_to_fe(link->link_enc,
3176-
pipe_ctx->stream_res.stream_enc->id, true);
3177-
dc_link_allocate_mst_payload(pipe_ctx);
3178-
}
3179-
}
3180-
3181-
return DC_OK;
3182-
}
31833139

31843140
#if defined(CONFIG_DRM_AMD_DC_HDCP)
31853141
static void update_psp_stream_config(struct pipe_ctx *pipe_ctx, bool dpms_off)

drivers/gpu/drm/amd/display/dc/dc_link.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ enum dc_detect_reason {
276276
bool dc_link_detect(struct dc_link *dc_link, enum dc_detect_reason reason);
277277
bool dc_link_get_hpd_state(struct dc_link *dc_link);
278278
enum dc_status dc_link_allocate_mst_payload(struct pipe_ctx *pipe_ctx);
279-
enum dc_status dc_link_reallocate_mst_payload(struct dc_link *link);
280279

281280
/* Notify DC about DP RX Interrupt (aka Short Pulse Interrupt).
282281
* Return:

0 commit comments

Comments
 (0)