Commit ff50afe9 authored by Daniel Vetter's avatar Daniel Vetter

drm/i915: WARN on !crtc in intel_dp_link_down

This could have happened with the old crtc helper based modeset code,
but can't happen any longer with the new code.

Hence put in a WARN and adjust the comment. If no one hits this, we
can eventually remove it (like a few other such cases across our
code).
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent ab527efc
...@@ -2098,15 +2098,10 @@ intel_dp_link_down(struct intel_dp *intel_dp) ...@@ -2098,15 +2098,10 @@ intel_dp_link_down(struct intel_dp *intel_dp)
/* Changes to enable or select take place the vblank /* Changes to enable or select take place the vblank
* after being written. * after being written.
*/ */
if (crtc == NULL) { if (WARN_ON(crtc == NULL)) {
/* We can arrive here never having been attached /* We should never try to disable a port without a crtc
* to a CRTC, for instance, due to inheriting * attached. For paranoia keep the code around for a
* random state from the BIOS. * bit. */
*
* If the pipe is not running, play safe and
* wait for the clocks to stabilise before
* continuing.
*/
POSTING_READ(intel_dp->output_reg); POSTING_READ(intel_dp->output_reg);
msleep(50); msleep(50);
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment