]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Mark the device as active when enabling runtime PM.
authorEric Anholt <eric@anholt.net>
Mon, 15 May 2017 17:16:15 +0000 (10:16 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 2 Jun 2017 20:00:47 +0000 (13:00 -0700)
commit26a334e25ad8dd9da821faef9d50b84364173246
tree561de493e2c66b2ec2933b59b6d38470dd6f3cf3
parenta7342cd1cb84e3a196034c3abf82238dc2a09451
drm/vc4: Mark the device as active when enabling runtime PM.

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: 2d35783d2aa1 ("drm/vc4: Allow using more than 256MB of CMA memory.")
Link: http://patchwork.freedesktop.org/patch/msgid/20170515171615.10168-1-eric@anholt.net
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/gpu/drm/vc4/vc4_v3d.c