From: Jesse Barnes Date: Fri, 22 Feb 2008 01:44:35 +0000 (-0800) Subject: i915: fix AR register restore. X-Git-Tag: v2.6.25-rc3~72 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=39273b58a409cd6d65c9732bdca00bacd1626672;p=linux-2.6-omap-h63xx.git i915: fix AR register restore. 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/drm/i915_drv.c b/drivers/char/drm/i915_drv.c index 4048f39b7ee..b2b451dc446 100644 --- a/drivers/char/drm/i915_drv.c +++ b/drivers/char/drm/i915_drv.c @@ -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 */