Skip to content

Commit ef67d79

Browse files
Wayne Linalexdeucher
authored andcommitted
drm/amd/display: Retry AUX write when fail occurs
[Why] In dm_dp_aux_transfer() now, we forget to handle AUX_WR fail cases. We suppose every write wil get done successfully and hence some AUX commands might not sent out indeed. [How] Check if AUX_WR success. If not, retry it. Signed-off-by: Wayne Lin <[email protected]> Reviewed-by: Hersen Wu <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent b5b97ca commit ef67d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static ssize_t dm_dp_aux_transfer(struct drm_dp_aux *aux,
6767
result = dc_link_aux_transfer_raw(TO_DM_AUX(aux)->ddc_service, &payload,
6868
&operation_result);
6969

70-
if (payload.write)
70+
if (payload.write && result >= 0)
7171
result = msg->size;
7272

7373
if (result < 0)

0 commit comments

Comments
 (0)