From patchwork Tue Nov 8 13:43:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 81323 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1554413qge; Tue, 8 Nov 2016 05:43:42 -0800 (PST) X-Received: by 10.99.174.71 with SMTP id e7mr6957570pgp.116.1478612622254; Tue, 08 Nov 2016 05:43:42 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xy7si30906392pac.183.2016.11.08.05.43.41; Tue, 08 Nov 2016 05:43:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752430AbcKHNng (ORCPT + 27 others); Tue, 8 Nov 2016 08:43:36 -0500 Received: from fw-tnat.cambridge.arm.com ([217.140.96.140]:55570 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752302AbcKHNnc (ORCPT ); Tue, 8 Nov 2016 08:43:32 -0500 Received: from e106497-lin.cambridge.arm.com (e106497-lin.cambridge.arm.com [10.2.131.185]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id uA8DhPJH020317; Tue, 8 Nov 2016 13:43:25 GMT From: Liviu Dudau To: DRI devel Cc: Mali DP Maintainers , David Airlie , Brian Starkey , LKML Subject: [PATCH] drm: mali-dp: Add support for setting plane's rotation property from userspace. Date: Tue, 8 Nov 2016 13:43:25 +0000 Message-Id: <20161108134325.1466-1-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.10.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to support DRM_IOCTL_MODE_OBJ_SETPROPERTY for the rotation property we need to have a ->set_property hook defined for the planes. Set the plane's ->set_property hook to drm_atomic_helper_plane_set_property() Signed-off-by: Liviu Dudau --- drivers/gpu/drm/arm/malidp_planes.c | 1 + 1 file changed, 1 insertion(+) -- 2.10.0 diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c index bb1c528..8eef9a8 100644 --- a/drivers/gpu/drm/arm/malidp_planes.c +++ b/drivers/gpu/drm/arm/malidp_planes.c @@ -89,6 +89,7 @@ void malidp_destroy_plane_state(struct drm_plane *plane, static const struct drm_plane_funcs malidp_de_plane_funcs = { .update_plane = drm_atomic_helper_update_plane, .disable_plane = drm_atomic_helper_disable_plane, + .set_property = drm_atomic_helper_plane_set_property, .destroy = malidp_de_plane_destroy, .reset = drm_atomic_helper_plane_reset, .atomic_duplicate_state = malidp_duplicate_plane_state,