Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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 155baf3038c1af50b602723022ed869b38e86a99)

authored by

Timur Kristóf and committed by
Alex Deucher
60af4605 880498a1

+2 -1
+2 -1
drivers/gpu/drm/amd/display/dc/resource/dce80/dce80_resource.c
··· 760 760 enc_init_data, 761 761 &link_enc_feature, 762 762 &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], 764 765 enc_init_data->hpd_source >= ARRAY_SIZE(link_enc_hpd_regs) ? 765 766 NULL : &link_enc_hpd_regs[enc_init_data->hpd_source]); 766 767 return &enc110->base;