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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:11 +0000 (19:14 +0200)
commita3a943b6f211c7323250009f1c3c5102a9c77418
treef2780193881a1792cd609814cc6a7c97e9d86263
parente7ea083125583716bf7861b8559ddbcd8691fd7e
drm/amd/display: Keep current gain when ABM disable immediately

[ Upstream commit cba4b52e431e5de3d8012281cfe194f1c39a9052 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dc_stream.h