OSDN Git Service

drm/amd/display: Disable link before reenable
authorLucy Li <lucy.li@amd.com>
Fri, 25 Oct 2019 21:59:32 +0000 (17:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 21:27:31 +0000 (16:27 -0500)
commit61f14c5b528f0c828e0d1f27f8580a7f43ad1a5b
tree9e34d305a5a092f37f031e8486ed2ca3d90fa634
parent832aa63bef346fc6a58bf46412036d368142fddf
drm/amd/display: Disable link before reenable

[Why]
Black screen seen after display is disabled then re-enabled.
Caused by difference in link settings when
switching between different resolutions.

[How]
In PnP case, or whenever the display is
still enabled but the driver is unloaded,
disable link before re-enabling with new link settings.

Signed-off-by: Lucy Li <lucy.li@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/core/dc_link.c