mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/amd/display: block passive dongle EDID Emulation for USB-C ports
[Why] Emulating passive dongle on USB-C port causes issue on some asics. [How] Check for DP_IS_USB_C flag in bios parser and propagate it to encoder features flags. If DP_IS_USB_C flag is set and it is trying to emulate passive dongle, then return fail. Signed-off-by: Samson Tam <Samson.Tam@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1313,6 +1313,8 @@ static enum bp_result bios_parser_get_encoder_cap_info(
|
||||
ATOM_ENCODER_CAP_RECORD_HBR3_EN) ? 1 : 0;
|
||||
info->HDMI_6GB_EN = (record->encodercaps &
|
||||
ATOM_ENCODER_CAP_RECORD_HDMI6Gbps_EN) ? 1 : 0;
|
||||
info->DP_IS_USB_C = (record->encodercaps &
|
||||
ATOM_ENCODER_CAP_RECORD_USB_C_TYPE) ? 1 : 0;
|
||||
|
||||
return BP_RESULT_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user