projects
/
linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cdb9ca
)
drm/vc4: Mark the device as active when enabling runtime PM.
author
Eric Anholt
<eric@anholt.net>
Mon, 15 May 2017 16:28:36 +0000
(09:28 -0700)
committer
Raspbian kernel package updater
<root@raspbian.org>
Sat, 31 Mar 2018 14:54:13 +0000
(15:54 +0100)
Failing to do so meant that we got a resume() callback on first use of
the device, so we would leak the bin BO that we allocated during
probe.
Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 553c942f8b2c ("drm/vc4: Allow using more than 256MB of CMA memory.")
drivers/gpu/drm/vc4/vc4_v3d.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_v3d.c
b/drivers/gpu/drm/vc4/vc4_v3d.c
index 550fcdc5733029e9eec57b722f83ad5958bbc286..fc3c7f73df7085f14456fc668231c10fd2ee10a0 100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_v3d.c
+++ b/
drivers/gpu/drm/vc4/vc4_v3d.c
@@
-375,6
+375,7
@@
static int vc4_v3d_bind(struct device *dev, struct device *master, void *data)
return ret;
}
+ pm_runtime_set_active(dev);
pm_runtime_use_autosuspend(dev);
pm_runtime_set_autosuspend_delay(dev, 40); /* a little over 2 frames. */
pm_runtime_enable(dev);