]> err.no Git - linux-2.6/commitdiff
i915: fix AR register restore.
authorJesse Barnes <jesse.barnes@intel.com>
Fri, 22 Feb 2008 01:44:35 +0000 (17:44 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 23 Feb 2008 00:50:29 +0000 (16:50 -0800)
Make sure the restoration correctly restores the AR registers by
flipping the ARX register into index mode before doing anything.

Without this, some people have had the text mode restore all green.

Signed-off-by: Jesse Barnes <jesse.barnes@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/drm/i915_drv.c

index 4048f39b7eed3acfad6b31b6e73b0c63ef73efc4..b2b451dc44608870a48cbfea56b7de522044aa40 100644 (file)
@@ -222,6 +222,7 @@ static void i915_restore_vga(struct drm_device *dev)
                           dev_priv->saveGR[0x18]);
 
        /* Attribute controller registers */
+       inb(st01);
        for (i = 0; i < 20; i++)
                i915_write_ar(st01, i, dev_priv->saveAR[i], 0);
        inb(st01); /* switch back to index mode */