drm/amd/display: Keep current gain when ABM disable immediately
authorBrandon Syu <Brandon.Syu@amd.com>
Wed, 10 Jun 2020 08:44:33 +0000 (16:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Aug 2020 20:40:18 +0000 (16:40 -0400)
commitf0372d4f3f8d27599ee78fb036ca5404b954b944
tree0baecad573e1cc5db165fe406e8476c76e8e0303
parent5019d8f1034324f284bd3fdb26aee6e7f34b83f9
drm/amd/display: Keep current gain when ABM disable immediately

[Why]
When system enters s3/s0i3, backlight PWM would set user level.

[How]
ABM disable function add keep current gain to avoid it.

Signed-off-by: Brandon Syu <Brandon.Syu@amd.com>
Reviewed-by: Josip Pavic <Josip.Pavic@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_stream.h