From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmk+kernel@armlinux.org.uk (Russell King) Date: Fri, 31 Mar 2017 10:51:52 +0100 Subject: [PATCH 3/3] drm/arm: hdlcd: check for rotation In-Reply-To: <20170331094937.GO7909@n2100.armlinux.org.uk> References: <20170331094937.GO7909@n2100.armlinux.org.uk> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org hdlcd does not support rotation - check for it and reject plane updates that try to rotate a plane. Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_crtc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/arm/hdlcd_crtc.c b/drivers/gpu/drm/arm/hdlcd_crtc.c index cf70184fd028..171acc842368 100644 --- a/drivers/gpu/drm/arm/hdlcd_crtc.c +++ b/drivers/gpu/drm/arm/hdlcd_crtc.c @@ -215,6 +215,10 @@ static int hdlcd_plane_atomic_check(struct drm_plane *plane, if (!crtc) return 0; + /* We do not support rotation */ + if (state->rotation != DRM_ROTATE_0) + return -EINVAL; + crtc_state = drm_atomic_get_existing_crtc_state(state->state, crtc); if (!crtc_state->enable) return -EINVAL; -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King Subject: [PATCH 3/3] drm/arm: hdlcd: check for rotation Date: Fri, 31 Mar 2017 10:51:52 +0100 Message-ID: References: <20170331094937.GO7909@n2100.armlinux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170331094937.GO7909@n2100.armlinux.org.uk> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Liviu Dudau Cc: David Airlie , Liviu Dudau , dri-devel@lists.freedesktop.org, Mali DP Maintainers , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Brian Starkey , LAKML List-Id: dri-devel@lists.freedesktop.org hdlcd does not support rotation - check for it and reject plane updates that try to rotate a plane. Signed-off-by: Russell King --- drivers/gpu/drm/arm/hdlcd_crtc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/arm/hdlcd_crtc.c b/drivers/gpu/drm/arm/hdlcd_crtc.c index cf70184fd028..171acc842368 100644 --- a/drivers/gpu/drm/arm/hdlcd_crtc.c +++ b/drivers/gpu/drm/arm/hdlcd_crtc.c @@ -215,6 +215,10 @@ static int hdlcd_plane_atomic_check(struct drm_plane *plane, if (!crtc) return 0; + /* We do not support rotation */ + if (state->rotation != DRM_ROTATE_0) + return -EINVAL; + crtc_state = drm_atomic_get_existing_crtc_state(state->state, crtc); if (!crtc_state->enable) return -EINVAL; -- 2.7.4