diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2021-06-25 10:21:59 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2021-06-29 11:03:39 +0200 |
commit | 1e4cd78ed4932b08bc839392fa6784e03d8f9619 (patch) | |
tree | 3aad29e1fbb4800e484a36bef74a2311aa7eee59 /drivers/gpio/gpio-merrifield.c | |
parent | drm/radeon: Track IRQ state in local device state (diff) | |
download | linux-1e4cd78ed4932b08bc839392fa6784e03d8f9619.tar.xz linux-1e4cd78ed4932b08bc839392fa6784e03d8f9619.zip |
drm: Don't test for IRQ support in VBLANK ioctls
For KMS drivers, replace the IRQ check in VBLANK ioctls with a check for
vblank support. IRQs might be enabled wthout vblanking being supported.
This change also removes the DRM framework's only dependency on IRQ state
for non-legacy drivers. For legacy drivers with userspace modesetting,
the original test remains in drm_wait_vblank_ioctl().
v4:
* avoid preprocessor ifdef in drm_wait_vblank_ioctl()
(Jani, Thierry)
v3:
* optimize test in drm_wait_vblank_ioctl() for KMS case (Liviu)
* update docs for drm_irq_uninstall()
v2:
* keep the old test for legacy drivers in
drm_wait_vblank_ioctl() (Daniel)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210625082222.3845-5-tzimmermann@suse.de
Diffstat (limited to 'drivers/gpio/gpio-merrifield.c')
0 files changed, 0 insertions, 0 deletions