]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm/i915: Use RSEN instead of HTPLG for tfp410 monitor detection.
authorDave Müller <dave.mueller@gmx.ch>
Fri, 4 Jun 2010 23:39:59 +0000 (16:39 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:27:34 +0000 (13:27 -0700)
commit f458823b864c6def488f951a79986fa205aba4f1 upstream.

Presence detection of a digital monitor seems not to be reliable using
the HTPLG bit.

Dave Müller <dave.mueller@gmx.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/dvo_tfp410.c

index c7c391bc116a6a22ed830a64be2a48514e114eb9..ad2e30947869f3cec2ef7bdcef1a52abfa403d06 100644 (file)
@@ -216,7 +216,7 @@ static enum drm_connector_status tfp410_detect(struct intel_dvo_device *dvo)
        uint8_t ctl2;
 
        if (tfp410_readb(dvo, TFP410_CTL_2, &ctl2)) {
-               if (ctl2 & TFP410_CTL_2_HTPLG)
+               if (ctl2 & TFP410_CTL_2_RSEN)
                        ret = connector_status_connected;
                else
                        ret = connector_status_disconnected;