From 109b9406fa1910c8a8c409d271a5c483d60bcdb1 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 12 Sep 2024 23:28:44 +0000 Subject: [PATCH] drm/amd/display: Run DC_LOG_DC after checking link->link_enc From Alex Hung 874e3bb302f97b94ac548959ec4f925b8e7b45e2 in linux-6.6.y/6.6.51 3a82f62b0d9d7687eac47603bb6cd14a50fa718b in mainline linux --- sys/dev/pci/drm/amd/display/dc/link/link_factory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/drm/amd/display/dc/link/link_factory.c b/sys/dev/pci/drm/amd/display/dc/link/link_factory.c index 2c366866f57..33bb96f770b 100644 --- a/sys/dev/pci/drm/amd/display/dc/link/link_factory.c +++ b/sys/dev/pci/drm/amd/display/dc/link/link_factory.c @@ -629,14 +629,14 @@ static bool construct_phy(struct dc_link *link, link->link_enc = link->dc->res_pool->funcs->link_enc_create(dc_ctx, &enc_init_data); - DC_LOG_DC("BIOS object table - DP_IS_USB_C: %d", link->link_enc->features.flags.bits.DP_IS_USB_C); - DC_LOG_DC("BIOS object table - IS_DP2_CAPABLE: %d", link->link_enc->features.flags.bits.IS_DP2_CAPABLE); - if (!link->link_enc) { DC_ERROR("Failed to create link encoder!\n"); goto link_enc_create_fail; } + DC_LOG_DC("BIOS object table - DP_IS_USB_C: %d", link->link_enc->features.flags.bits.DP_IS_USB_C); + DC_LOG_DC("BIOS object table - IS_DP2_CAPABLE: %d", link->link_enc->features.flags.bits.IS_DP2_CAPABLE); + /* Update link encoder tracking variables. These are used for the dynamic * assignment of link encoders to streams. */ -- 2.20.1