[Intel-gfx] [PATCH 6/7] drm/i915: use vga get/put where needed around VGA plane disable
Jesse Barnes
jbarnes at virtuousgeek.org
Wed Aug 18 21:00:35 CEST 2010
---
drivers/gpu/drm/i915/intel_display.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 6dab095..928bcc2 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -29,6 +29,7 @@
#include <linux/i2c.h>
#include <linux/kernel.h>
#include <linux/slab.h>
+#include <linux/vgaarb.h>
#include "drmP.h"
#include "intel_drv.h"
#include "i915_drm.h"
@@ -5540,9 +5541,11 @@ static void i915_disable_vga(struct drm_device *dev)
else
vga_reg = VGACNTRL;
+ vga_get_uninterruptible(dev->pdev, VGA_RSRC_LEGACY_IO);
outb(1, VGA_SR_INDEX);
sr1 = inb(VGA_SR_DATA);
outb(sr1 | 1<<5, VGA_SR_DATA);
+ vga_put(dev->pdev, VGA_RSRC_LEGACY_IO);
udelay(300);
I915_WRITE(vga_reg, VGA_DISP_DISABLE);
--
1.7.0.4
More information about the Intel-gfx
mailing list