]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
drm/i915: don't enable vblanks on disabled pipes
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 8 Jan 2009 18:42:15 +0000 (10:42 -0800)
committerDave Airlie <airlied@linux.ie>
Sat, 10 Jan 2009 22:59:48 +0000 (08:59 +1000)
commit71e0ffa599f54058d9b8724b4b14d0486751681d
tree93995ec627de4ef0e211965ed83fab58804f8770
parent3d14bdad40315b54470cb7812293d14c8af2bf7d
drm/i915: don't enable vblanks on disabled pipes

In some cases userland may be confused and try to wait on vblank events from
pipes that aren't actually enabled.  We shouldn't allow this, so return
-EINVAL if the pipe isn't on.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/i915/i915_irq.c