]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: g2d: let exynos_g2d_get_ver_ioctl fail
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Wed, 23 Jul 2014 14:57:13 +0000 (16:57 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 4 Aug 2014 04:39:28 +0000 (13:39 +0900)
commit9fd620518540c146eb615cf0c169f4da73587c2f
treecfbd52dcaa4d239c24ebdc7ca4ee14ae464da2a3
parenteb5a827d6e6756097de401030802780e00189be2
drm/exynos: g2d: let exynos_g2d_get_ver_ioctl fail

Currently the DRM_IOCTL_EXYNOS_G2D_GET_VER ioctl always succeeds, even
if no G2D support is available. Let the ioctl fail when this is the
case, so that userspace can accurately probe for G2D support.

This also fixes the exynos tests in libdrm. There 'g2d_init' doesn't
fail when G2D is absent, leading to a segfault later.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: INki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c