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 <ray.wu@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Wayne Lin
2025-04-30 17:35:21 +08:00
committed by Alex Deucher
parent de6485e3df
commit ea979dd401

View File

@@ -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;
}