i915: Fix opregion notifications
authorMatthew Garrett <mjg@redhat.com>
Tue, 12 Jul 2011 22:30:52 +0000 (18:30 -0400)
committerKeith Packard <keithp@keithp.com>
Wed, 13 Jul 2011 18:19:47 +0000 (11:19 -0700)
commitf5a3d0c4086d1854cbda545092c462b84cba20ce
treea7ff24f477c618a7680bc617f12366656a0afe23
parent2bf71160f94270319eb965935045f825ec446e8a
i915: Fix opregion notifications

opregion-based platforms will send ACPI video event 0x80 for a range of
notification types for legacy compatibility. This is interpreted as a
display switch event, which may not be appropriate in the circumstances.
When we receive such an event we should make sure that the platform is
genuinely requesting a display switch before passing that event through
to userspace.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Tested-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/acpi/video.c
drivers/gpu/drm/i915/intel_opregion.c
include/acpi/video.h