Commit 60af4605 authored by Timur Kristóf's avatar Timur Kristóf Committed by Alex Deucher
Browse files

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: 4562236b ("drm/amd/dc: Add dc display driver (v2)")
Link: https://gitlab.freedesktop.org/drm/amd/-/work_items/5192


Signed-off-by: default avatarTimur Kristóf <timur.kristof@gmail.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 155baf3038c1af50b602723022ed869b38e86a99)
parent 880498a1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -760,7 +760,8 @@ static struct link_encoder *dce80_link_encoder_create(
				      enc_init_data,
				      &link_enc_feature,
				      &link_enc_regs[link_regs_id],
				      &link_enc_aux_regs[enc_init_data->channel - 1],
				      enc_init_data->channel == CHANNEL_ID_UNKNOWN ?
				      NULL : &link_enc_aux_regs[enc_init_data->channel - 1],
				      enc_init_data->hpd_source >= ARRAY_SIZE(link_enc_hpd_regs) ?
				      NULL : &link_enc_hpd_regs[enc_init_data->hpd_source]);
	return &enc110->base;