drm/amd/display: Fix Edid emulation for linux
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Wed, 26 Sep 2018 17:42:10 +0000 (13:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2018 15:05:21 +0000 (10:05 -0500)
commitfbbdadf2faf17cd88e9c447701495540377c5743
tree57ed5ec08483c325ddc57e9610199c45a160fbea
parent599760d6d0abbab71f9726b49858d2ec45e74c0a
drm/amd/display: Fix Edid emulation for linux

[Why]
EDID emulation didn't work properly for linux, as we stop programming
if nothing is connected physically.

[How]
We get a flag from DRM when we want to do edid emulation. We check if
this flag is true and nothing is connected physically, if so we only
program the front end using VIRTUAL_SIGNAL.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dc_link.h