]> 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)
commit2e97a75660c2f45a540dc233f8ed63ef4265e96d
treecfbd52dcaa4d239c24ebdc7ca4ee14ae464da2a3
parentd96a84c407312b0a7978778c53e10293a54956a0
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