drm/radeon: Don't turn off DP sink when disconnected
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 14 Mar 2018 17:14:04 +0000 (18:14 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 31 May 2018 23:30:22 +0000 (00:30 +0100)
commit080c12d8adf93365bd13606074b3394042820c67
treee332e7c27120c9dca98d02b29f5e315baabec364
parent2201f59fee9b0f5bc6cf1dc729ab9900de423ced
drm/radeon: Don't turn off DP sink when disconnected

commit 2681bc79eeb640562c932007bfebbbdc55bf6a7d upstream.

Turning off the sink in this case causes various issues, because
userspace expects it to stay on until it turns it off explicitly.

Instead, turn the sink off and back on when a display is connected
again. This dance seems necessary for link training to work correctly.

Bugzilla: https://bugs.freedesktop.org/105308
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/radeon/radeon_connectors.c