]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Fix handling of a pm_runtime_get_sync() success case.
authorEric Anholt <eric@anholt.net>
Tue, 26 Jul 2016 20:47:12 +0000 (13:47 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 20 Aug 2016 02:17:30 +0000 (19:17 -0700)
commit758254a5d744c6d80433e41097d8b308c7e5094c
treefb1fae850e1adb11ae9ffe85faded1e53135d60c
parent7ad32d4067ea296434658db8a34288f08ce9fdf0
drm/vc4: Fix handling of a pm_runtime_get_sync() success case.

If the device was already up, a 1 is returned instead of 0.  We were
erroring out, leading the 3D driver to sometimes fail at screen
initialization (generally with ENOENT returned to it).

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 2692f49a35d8 ("drm/vc4: Add a getparam ioctl for getting the V3D identity regs.")
drivers/gpu/drm/vc4/vc4_drv.c