From 35edbfff25a9140b8d121fa8ad482861c70dc243 Mon Sep 17 00:00:00 2001 From: Hoegeun Kwon Date: Fri, 21 Apr 2017 10:59:21 +0900 Subject: [PATCH] drm/exynos/ipp: Add check the property even if ipp id exists If user calls exynos_drm_ipp_set_property() with ioctl, check_property is not executed if ipp id(prop_id) is present. This means that you can not dynamically check the rotation limits, So check the property even if ipp id exists. Change-Id: Ibc99dda25ea41ded3db7f3307ca3a4b0ba5de9bb Signed-off-by: Hoegeun Kwon --- drivers/gpu/drm/exynos/exynos_drm_ipp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c index bcd30a6..f3a29f7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c @@ -366,6 +366,16 @@ int exynos_drm_ipp_set_property(struct drm_device *drm_dev, void *data, c_node->property = *property; + ippdrv = ipp_find_drv_by_handle(prop_id); + if (IS_ERR(ippdrv)) { + DRM_ERROR("failed to get ipp driver.\n"); + return -EINVAL; + } + + ret = ipp_check_driver(ippdrv, property); + if (ret < 0) + return ret; + return 0; } -- 2.7.4