Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03f6509d authored by Thierry Reding's avatar Thierry Reding Committed by Dave Airlie
Browse files

drm: Allow vblank support without DRIVER_HAVE_IRQ



Drivers that register interrupt handlers without the DRM core helpers
don't initialize the .irq_enabled field and drm_dev_to_irq() may fail
when called on them. This shouldn't preclude them from implementing
the vblank IOCTL.

Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 1e6d17a5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1218,6 +1218,7 @@ int drm_wait_vblank(struct drm_device *dev, void *data,
	int ret;
	unsigned int flags, seq, crtc, high_crtc;

	if (drm_core_check_feature(dev, DRIVER_HAVE_IRQ))
		if ((!drm_dev_to_irq(dev)) || (!dev->irq_enabled))
			return -EINVAL;