drm/amd/display: modify SMU_TIMEOUT macro.
authorIan Chen <ian.chen@amd.com>
Tue, 21 Dec 2021 03:17:30 +0000 (11:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jan 2022 22:43:36 +0000 (17:43 -0500)
commitc1a20f707ac33b1fec1d78bab74e07656c237801
tree2b2d757ea9f5cf1615d18efb103eeb59386422f3
parentf369e4eba89a6fc1cac619db86c00a964d1fc0a2
drm/amd/display: modify SMU_TIMEOUT macro.

[WHY]
If some SMU features are not enabled, SMU will return fail to that
message.

[HOW]
SMU_TIMEOUT macro will treat "return fail" as timeout also.
Correct the macro to only report timeout case.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Ian Chen <ian.chen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dm_helpers.h