Skip to content

Commit 60af460

Browse files
Timur Kristófalexdeucher
authored andcommitted
drm/amd/display: Allow constructing DCE8 link encoder without DDC
When the DDC channel ID is set to CHANNEL_ID_UNKNOWN, pass NULL to the AUX regs array. This is necessary to support embedded connectors without DDC. Fixes: 4562236 ("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 155baf3)
1 parent 880498a commit 60af460

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/resource/dce80/dce80_resource.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,8 @@ static struct link_encoder *dce80_link_encoder_create(
760760
enc_init_data,
761761
&link_enc_feature,
762762
&link_enc_regs[link_regs_id],
763-
&link_enc_aux_regs[enc_init_data->channel - 1],
763+
enc_init_data->channel == CHANNEL_ID_UNKNOWN ?
764+
NULL : &link_enc_aux_regs[enc_init_data->channel - 1],
764765
enc_init_data->hpd_source >= ARRAY_SIZE(link_enc_hpd_regs) ?
765766
NULL : &link_enc_hpd_regs[enc_init_data->hpd_source]);
766767
return &enc110->base;

0 commit comments

Comments
 (0)