summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/arm/malidp_planes.c
diff options
context:
space:
mode:
authorMihail Atanassov <mihail.atanassov@arm.com>2016-12-23 09:57:20 +0000
committerLiviu Dudau <Liviu.Dudau@arm.com>2017-01-23 09:46:24 +0000
commitc7ffa59cf03c38b91d6ef01e42c1b52fd7a4f285 (patch)
tree30157f9cd44c58091ccc252a6cb853e81a6ed7c4 /drivers/gpu/drm/arm/malidp_planes.c
parent7916efe5b57505080b3cebf5bdb228b4eda008ea (diff)
downloadop-kernel-dev-c7ffa59cf03c38b91d6ef01e42c1b52fd7a4f285.zip
op-kernel-dev-c7ffa59cf03c38b91d6ef01e42c1b52fd7a4f285.tar.gz
drm: mali-dp: fix Lx_CONTROL register fields clobber
When updating the rotation fields, one of the assignments zeroes out the rest of the register fields, which include settings for chroma siting, inverse gamma, AMBA AXI caching, and alpha blending. Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com> Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Diffstat (limited to 'drivers/gpu/drm/arm/malidp_planes.c')
-rw-r--r--drivers/gpu/drm/arm/malidp_planes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/drivers/gpu/drm/arm/malidp_planes.c
index 629f634..1db8b69 100644
--- a/drivers/gpu/drm/arm/malidp_planes.c
+++ b/drivers/gpu/drm/arm/malidp_planes.c
@@ -219,7 +219,8 @@ static void malidp_de_plane_update(struct drm_plane *plane,
/* setup the rotation and axis flip bits */
if (plane->state->rotation & DRM_ROTATE_MASK)
- val = ilog2(plane->state->rotation & DRM_ROTATE_MASK) << LAYER_ROT_OFFSET;
+ val |= ilog2(plane->state->rotation & DRM_ROTATE_MASK) <<
+ LAYER_ROT_OFFSET;
if (plane->state->rotation & DRM_REFLECT_X)
val |= LAYER_H_FLIP;
if (plane->state->rotation & DRM_REFLECT_Y)
OpenPOWER on IntegriCloud