]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/lvds: Only act on lid notify when the device is on
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 21 Apr 2011 22:08:14 +0000 (16:08 -0600)
committerKeith Packard <keithp@keithp.com>
Mon, 9 May 2011 16:13:22 +0000 (09:13 -0700)
commit99462eaf14a698a6924daf9979ec09fe126a1609
tree4a1884e1fb0b26f43898ca16a71f5b757d932c1d
parentb59efbdba3f5598a3564044d694a4f80d6931eab
drm/i915/lvds: Only act on lid notify when the device is on

If we're using vga switcheroo, the device may be turned off
and poking it can return random state. This provokes an OOPS fixed
separately by 8ff887c847 (drm/i915/dp: Be paranoid in case we disable a
DP before it is attached). Trying to use and respond to events on a
device that has been turned off by the user is in principle a silly thing
to do.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_lvds.c