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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:09 +0000 (14:18 -0500)
commitd35d77a6a512f38a89aee9328c67d0c913c7fbea
treeeffa9214919347fb3b0a00659b1385bd75a19b28
parent8fb843d179a6fff1bfe037601b06980ba9a56167
drm/amd/display: Wait for backlight programming completion in set backlight level

[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>
drivers/gpu/drm/amd/display/dc/dce/dce_abm.c