Skip to content

Commit 1db6c9e

Browse files
Wayne Linalexdeucher
authored andcommitted
drm/amd/display: Fix the checking condition in dmub aux handling
[Why & How] Fix the checking condition for detecting AUX_RET_ERROR_PROTOCOL_ERROR. It was wrongly checking by "not equals to" Reviewed-by: Ray Wu <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Signed-off-by: Ray Wu <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d5c9ade commit 1db6c9e

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.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12839,7 +12839,7 @@ int amdgpu_dm_process_dmub_aux_transfer_sync(
1283912839
* Transient states before tunneling is enabled could
1284012840
* lead to this error. We can ignore this for now.
1284112841
*/
12842-
if (p_notify->result != AUX_RET_ERROR_PROTOCOL_ERROR) {
12842+
if (p_notify->result == AUX_RET_ERROR_PROTOCOL_ERROR) {
1284312843
drm_warn(adev_to_drm(adev), "DPIA AUX failed on 0x%x(%d), error %d\n",
1284412844
payload->address, payload->length,
1284512845
p_notify->result);

0 commit comments

Comments
 (0)