drm/i915: fix up the IBX transcoder B check
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 10 Sep 2012 19:58:29 +0000 (21:58 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Sep 2012 15:25:14 +0000 (17:25 +0200)
commit75c5da279e06577190abba52cabf0dc2a56edb97
treedae8b110bc370ad8a597f6c6fd1c3e1c8cbc8ef4
parent974a3b0f9f05b748fe11f1afc31efc32aa5160cb
drm/i915: fix up the IBX transcoder B check

This has been added in

commit de9a35abb3b343a25065449234e47a76c4f3454a
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Jun 5 11:03:40 2012 +0200

    drm/i915: assert that the IBX port transcoder select w/a is implemented

Unfortunately I've failed to notice that these checks are not just
called for the port that is about to be disabled, but for all (which
makes sense for an assert ...), and the WARN missfired when disabling
another pipe than the one with the dp port.

Hence also check whether the port is actually disabled.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54688
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c