]> git.baikalelectronics.ru Git - kernel.git/commit
drm: vblank cannot be enabled if dev->irq_enabled is false
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 20:20:28 +0000 (20:20 +0000)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 29 Mar 2017 10:56:53 +0000 (13:56 +0300)
commit14631e24512bc37131b5a702b6fdbdefbaea02f4
tree37376f99e61a09bf65b39d9b3f2ef89defe2f156
parent66cf74144736147d22b603bca0a3b96a35b78fe3
drm: vblank cannot be enabled if dev->irq_enabled is false

Since we cannot enable the vblank if !dev->irq_enabled, we assert that
checking for both !vblank->enabled and !dev->irq_enabled is tautological
and only need the former. The only time it may differ is when racing
with drm_irq_uninstall(), but that will then disable the vblank and
wakeup the waiters.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170317202030.24410-2-chris@chris-wilson.co.uk
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/drm_irq.c