]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Move IRQ enable to PM path
authorStefan Schake <stschake@gmail.com>
Fri, 29 Dec 2017 16:05:43 +0000 (17:05 +0100)
committerEric Anholt <eric@anholt.net>
Wed, 3 Jan 2018 23:56:03 +0000 (15:56 -0800)
commit1676f353ea10dbb76e1437d6bd63c36c14c0d9f2
tree5204a4d4e5ca8c02fc3c6a4cf608f1c1e2896f85
parentd4c79b8a093c1fc335ca85846c49addf6ccc190d
drm/vc4: Move IRQ enable to PM path

We were calling enable_irq on bind, where it was already enabled previously
by the IRQ helper. Additionally, dev->irq is not set correctly until after
postinstall and so was always zero here, triggering a warning in 4.15.
Fix both by moving the enable to the power management resume path, where we
know there was a previous disable invocation during suspend.

Fixes: 5c8a7f57d7b2 ("drm/vc4: Account for interrupts in flight")
Signed-off-by: Stefan Schake <stschake@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/1514563543-32511-1-git-send-email-stschake@gmail.com
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_irq.c
drivers/gpu/drm/vc4/vc4_v3d.c