]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Allow DCE link encoder without AUX registers
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 28 Apr 2026 11:40:41 +0000 (13:40 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Apr 2026 14:41:22 +0000 (10:41 -0400)
Allow constructing the DCE link encoder without DDC,
which means the AUX registers array will be NULL.

This is necessary to support embedded connectors without DDC.

Fixes: 4562236b3bc0 ("drm/amd/dc: Add dc display driver (v2)")
Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/5192
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 87f30b101af62590faf6020d106da07efdda199b)

drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c

index 5f40ae9e3120f49008385d660e88493924ef6141..e15fd1454d3b534dbe6c20b3f2dcfb458e753e57 100644 (file)
@@ -1102,7 +1102,9 @@ void dce110_link_encoder_hw_init(
                ASSERT(result == BP_RESULT_OK);
 
        }
-       aux_initialize(enc110);
+
+       if (enc110->aux_regs)
+               aux_initialize(enc110);
 
        /* reinitialize HPD.
         * hpd_initialize() will pass DIG_FE id to HW context.