drm/amd/display: Wait for backlight programming completion in set backlight level
authorSivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Fri, 14 Jun 2019 19:04:00 +0000 (15:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:12:44 +0000 (10:12 +0200)
commit2a5e21adc71b46beec9232cc6418676fd2255bc5
treeb3056777a39ae5aea69ee4e53048f4d20a8e2392
parent056af94d6e109852305043bca283c24b5d354153
drm/amd/display: Wait for backlight programming completion in set backlight level

[ Upstream commit c7990daebe71d11a9e360b5c3b0ecd1846a3a4bb ]

[WHY]
Currently we don't wait for blacklight programming completion in DMCU
when setting backlight level. Some sequences such as PSR static screen
event trigger reprogramming requires it to be complete.

[How]
Add generic wait for dmcu command completion in set backlight level.

Signed-off-by: SivapiriyanKumarasamy <sivapiriyan.kumarasamy@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Leo Li <sunpeng.li@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/dce/dce_abm.c