drm/i915: Enable ASLE if present
authorMatthew Garrett <mjg59@srcf.ucam.org>
Wed, 1 Apr 2009 18:53:33 +0000 (19:53 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 17 Apr 2009 20:31:09 +0000 (13:31 -0700)
The changes to opregion initialisation order meant that the ASLE setup
code might not be run at the correct time. Ensure that the interrupts are
set up.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_opregion.c

index 3eceefe..dc425e7 100644 (file)
@@ -386,6 +386,7 @@ int intel_opregion_init(struct drm_device *dev, int resume)
        if (mboxes & MBOX_ASLE) {
                DRM_DEBUG("ASLE supported\n");
                opregion->asle = base + OPREGION_ASLE_OFFSET;
+               opregion_enable_asle(dev);
        }
 
        if (!resume)