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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Mar 2018 16:24:40 +0000 (18:24 +0200)
commitb53d42b4ab924c2860cb8357dca821d3e8adc388
treed04b000b3ca44a732f296eb398535131c78d5661
parent19246741a6dfabb59ddb43ec1af3d0d7cc9aa64a
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
Cc: stable@vger.kernel.org
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/radeon_connectors.c