From: Sridevi Arvindekar <[email protected]>

[Why/How]
Fix check for virtual link encoder

Reviewed-by: Ilya Bakoulin <[email protected]>
Signed-off-by: Sridevi Arvindekar <[email protected]>
Signed-off-by: Roman Li <[email protected]>
---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c 
b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index 7e42790ad575..187486d978da 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -3019,7 +3019,7 @@ static inline int find_fixed_dio_link_enc(const struct 
dc_link *link)
 {
        /* virtual links own their link encoder directly and are never
         * registered into pool->link_encoders[]. */
-       if (link->connector_signal == SIGNAL_TYPE_VIRTUAL)
+       if (link->link_id.id == CONNECTOR_ID_VIRTUAL)
                return -1;
 
        /* the 8b10b dp phy can only use fixed link encoder */
-- 
2.34.1

Reply via email to