drm/amd/display: initialize link_srv in virtual env
authorMartin Leung <Martin.Leung@amd.com>
Fri, 10 Mar 2023 03:42:14 +0000 (22:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Mar 2023 04:59:37 +0000 (00:59 -0400)
[why]
when refactoring to link_srv, we did not include the
virtual environment case where dc_construct_ctx gets
called instead of dc_construct

[how]
add initialize link_srv to dc_construct_ctx as well

Reviewed-by: Leo Ma <hanghong.ma@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Martin Leung <Martin.Leung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index ae5f1b7..dc67256 100644 (file)
@@ -887,6 +887,7 @@ static bool dc_construct_ctx(struct dc *dc,
        }
 
        dc->ctx = dc_ctx;
+       dc->link_srv = link_create_link_service();
 
        return true;
 }