From 7130662aa0c476a56a4a053c6dda19bc3a91060a Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Mon, 11 Jul 2005 18:27:39 +0000 Subject: IRQ must be assigned and enabled or this will hang --- linux-core/drm_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-core/drm_irq.c b/linux-core/drm_irq.c index 37c89762..7f21205d 100644 --- a/linux-core/drm_irq.c +++ b/linux-core/drm_irq.c @@ -250,7 +250,7 @@ int drm_wait_vblank(DRM_IOCTL_ARGS) if (!drm_core_check_feature(dev, DRIVER_IRQ_VBL)) return -EINVAL; - if (!dev->irq) + if ((!dev->irq) || (!dev->irq_enabled)) return -EINVAL; DRM_COPY_FROM_USER_IOCTL(vblwait, argp, sizeof(vblwait)); -- cgit v1.2.3