drm/amd/display: Fix exception from AUX acquire failure
authorAnthony Koo <Anthony.Koo@amd.com>
Wed, 6 Feb 2019 16:45:42 +0000 (11:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Mar 2019 20:09:33 +0000 (15:09 -0500)
commitdcf1a988678e2e39ce2b4115b8ce14d208c8c481
tree84d07dab08b66d13af8a32fb57f211bbae5a250a
parent4bc46da4a3aeeb4d55e83dd276cf72756e908286
drm/amd/display: Fix exception from AUX acquire failure

[Why]
AUX arbitration occurs between SW and FW components.
When AUX acquire fails, it causes engine->ddc to be NULL,
which leads to an exception when we try to release the AUX
engine.

[How]
When AUX engine acquire fails, it should return from the
function without trying to continue the operation.
The upper level will determine if it wants to retry.
i.e. dce_aux_transfer_with_retries will be used and retry.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_aux.c