OSDN Git Service

drm/amd/display: Handle virtual signal type in disable_link()
authorMartin Tsai <martin.tsai@amd.com>
Thu, 22 Aug 2019 02:02:13 +0000 (10:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Sep 2019 13:06:54 +0000 (08:06 -0500)
commit616f5b65f1c02d3d6ae370644670d14c57de2fd8
tree233dcf95ed3661f183c38d2f602e21379503d625
parent74df06dd8ef3a70bac08a35cad903d5a4466aed5
drm/amd/display: Handle virtual signal type in disable_link()

[Why]
The new implementation changed the behavior to allow process setMode
to DAL when DAL returns empty mode query for unplugged display.
This will trigger additional disable_link().
When unplug HDMI from MST dock, driver will update stream->signal to
"Virtual". disable_link() will call disable_output() if the signal type
is not DP and induce other displays on MST dock show black screen.

[How]
Don't need to process disable_output() if the signal type is virtual.

Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@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/core/dc_link.c