drm/i915/dp: Only apply the workaround if the select is still active
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Dec 2010 11:20:45 +0000 (11:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Dec 2010 22:46:11 +0000 (22:46 +0000)
commit1b39d6f37622f1da70aa2cfd38bfff9a52c13e05
treea2402c55a1cd5db952a45bfa06f598100f56e299
parent7a1948768c2998f5bddb2327696cbe3161f468ed
drm/i915/dp: Only apply the workaround if the select is still active

As we may try to power down the link at various times, it is not
necessarily still coupled with an encoder and so we must be careful not
to depend upon an operation that is only valid when the link is still
attached to a pipe.

Fixes regression in 5bddd17.

Reported-and-tested-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org [after applying 5bddd17]
drivers/gpu/drm/i915/intel_dp.c