drm/i915: Warn if a pipe is enabled with a bogus port
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 25 Mar 2013 15:16:14 +0000 (15:16 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 25 Mar 2013 18:21:00 +0000 (19:21 +0100)
commita42f704b71b252705f34fbe60ea6f4a76f891a78
tree171c0c841e6ba743084fade941c0bffc1c9e798c
parentfec46b5eff854df5647a9f4724e45dd33933855a
drm/i915: Warn if a pipe is enabled with a bogus port

If TRANS_DDI_FUNC_CTL has been wrongly programmed with an incorrect
port, we are currently trying to read PORT_CLK_SEL(port) with an
uninitialized value.

Handle that case by returning PORT_CLK_SEL_NONE and warning about it.

v2: Move the warning inside intel_ddi_get_crtc_pll (Paulo Zanoni)

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c