]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Add helpers for pm get/put.
authorEric Anholt <eric@anholt.net>
Wed, 20 Feb 2019 21:03:42 +0000 (13:03 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 1 Apr 2019 17:44:34 +0000 (10:44 -0700)
commit3574616393044bd0b4d32a54003dad2bfeadd83d
tree7a15f86cfbe5c2e06cdb3777ab7df3cfb5575d72
parent1b1f1d254eed3c5f0ba6002f27e8ce57facf59ee
drm/vc4: Add helpers for pm get/put.

This makes sure the vc4_reset doesn't hit an obscure race with the
GET_PARAM ioctl, fixes a decrement outside of the lock, and prevents
future code from making mistakes with the weird return value of
pm_runtime_get_sync().

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190220210343.28157-6-eric@anholt.net
Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_gem.c
drivers/gpu/drm/vc4/vc4_v3d.c