commit | cb74f6ee8e3a00e85d53697d5d84ec21d416e5ef | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Wed Feb 20 13:03:42 2019 -0800 |
committer | Eric Anholt <eric@anholt.net> | Mon Apr 01 10:44:34 2019 -0700 |
tree | 7a15f86cfbe5c2e06cdb3777ab7df3cfb5575d72 | |
parent | 13f0ec3417c566ae29603eb5d18f4b7d581ade52 [diff] |
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>