From: jsg Date: Fri, 2 Feb 2024 03:27:33 +0000 (+0000) Subject: drm/amd/display: Align the returned error code with legacy DP X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6936bf9fbeb207d8e0903b06e632fa0dc9bc5653;p=openbsd drm/amd/display: Align the returned error code with legacy DP From Wayne Lin d3af41be094a39e1a1392d1d42cdf3eb90922476 in linux-6.6.y/6.6.15 bfe79f5fff1300d96203383582b078c7b0aec80a in mainline linux --- diff --git a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c index cb0142f3a4d..f50a0d689cc 100644 --- a/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c +++ b/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c @@ -956,6 +956,11 @@ int dm_helper_dmub_aux_transfer_sync( struct aux_payload *payload, enum aux_return_code_type *operation_result) { + if (!link->hpd_status) { + *operation_result = AUX_RET_ERROR_HPD_DISCON; + return -1; + } + return amdgpu_dm_process_dmub_aux_transfer_sync(ctx, link->link_index, payload, operation_result); }