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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:43:06 +0000 (16:43 +0100)
commit67a0b5676c3ef2cff151535b395709d7bc379e24
tree41d7d95243ccf38cdf62855e9e3c4e5be735b3fc
parent56997f310d75c0099ef93d9abafd874496db9020
drm/amd/display: Handle virtual signal type in disable_link()

[ Upstream commit 616f5b65f1c02d3d6ae370644670d14c57de2fd8 ]

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