From: Wayne Lin Date: Wed, 30 Apr 2025 09:35:21 +0000 (+0800) Subject: drm/amd/display: Return the exact value for debugging X-Git-Tag: v6.16-rc1~144^2~5^2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea979dd40138e0132fb3e4372859a5efadce0f37;p=thirdparty%2Fkernel%2Fstable.git drm/amd/display: Return the exact value for debugging [Why] It's unnecessary to set operation_result as invalid reply when p_notify->result != AUX_RET_SUCCESS. [How] Set operation_result as p_notify->result to better understand the reason for the error Reviewed-by: Ray Wu Signed-off-by: Wayne Lin Signed-off-by: Ray Wu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index a78a40584dd3f..4b4e9241619f1 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -12701,7 +12701,7 @@ int amdgpu_dm_process_dmub_aux_transfer_sync( payload->address, payload->length, p_notify->result); } - *operation_result = AUX_RET_ERROR_INVALID_REPLY; + *operation_result = p_notify->result; goto out; }