]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: correct idle_power_optimizations disablement return value
authorEvan Quan <evan.quan@amd.com>
Wed, 6 Jul 2022 08:38:38 +0000 (16:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2022 19:54:17 +0000 (15:54 -0400)
commit0b36c9d0932bb970cb46731b9a0dc5ed4cd625fb
tree6c6aeedc99a1ebb10880e617ad7beef6484500ef
parent4ac9c5befedc59fea975539968700902008b9d94
drm/amd/display: correct idle_power_optimizations disablement return value

[Why]
The return value indicates whether the operation(disable/enable) succeeded
or not. The existing logic reports wrong result even if the disablement was
performed successfully. That will make succeeding reenablement abandoned
as dc->idle_optimizations_allowed is always true.

[How]
Correct the return value to reflect the real result of disablement.

Fixes: 573847a1900a ("drm/amd/display: add DCN32/321 specific files for Display Core")
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c