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 DCE6 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: 7c15fd86aaec ("drm/amd/display: dc/dce: add initial DCE6 support (v10)")
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 38a70e50b22a188ff601740d64dd75f46213121f)

authored by

Timur Kristóf and committed by
Alex Deucher
880498a1 ac27e3f9

+2 -1
+2 -1
drivers/gpu/drm/amd/display/dc/resource/dce60/dce60_resource.c
··· 753 753 enc_init_data, 754 754 &link_enc_feature, 755 755 &link_enc_regs[link_regs_id], 756 - &link_enc_aux_regs[enc_init_data->channel - 1], 756 + enc_init_data->channel == CHANNEL_ID_UNKNOWN ? 757 + NULL : &link_enc_aux_regs[enc_init_data->channel - 1], 757 758 enc_init_data->hpd_source >= ARRAY_SIZE(link_enc_hpd_regs) ? 758 759 NULL : &link_enc_hpd_regs[enc_init_data->hpd_source]); 759 760 return &enc110->base;