summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-09-12 23:28:45 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-09-12 23:28:45 +0000
commit902fdf0ba2cd47611b579069d418bc35c8208c0a (patch)
treebc8b903bcc357d0a7d98d8bba86d9c310b9e9112 /sys
parente61606288e8309ee325d80fe7c7219eb11d7b34a (diff)
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
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/amd/display/dc/link/link_factory.c6
1 files 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.
*/