diff options
author | Ville Syrjälä | 2016-07-22 15:43:09 +0200 |
---|---|---|
committer | Rob Clark | 2016-09-15 23:21:12 +0200 |
commit | 1d42a3fee6e83ae6e7c83808ccdf8620fc30447e (patch) | |
tree | b17a0b9816a6c805530c75ba3c849f69787fba52 /drivers/gpu/drm/msm | |
parent | drm/msm/hdmi: don't print error when adding i2c adapter fails (diff) | |
download | kernel-qcow2-linux-1d42a3fee6e83ae6e7c83808ccdf8620fc30447e.tar.gz kernel-qcow2-linux-1d42a3fee6e83ae6e7c83808ccdf8620fc30447e.tar.xz kernel-qcow2-linux-1d42a3fee6e83ae6e7c83808ccdf8620fc30447e.zip |
drm/msm/mdp5: Set rotation property initial value to DRM_ROTATE_0 insted of 0
0 isn't a valid rotation property value, so let's set the initial value
of the property to DRM_ROTATE_0 instead.
In the same vein, we must always have at leat one angle as part of set
of supported rotation bits, so let's include DRM_ROTATE_0 in there.
Cc: Rob Clark <robdclark@gmail.com>
Cc: Jilai Wang <jilaiw@codeaurora.org>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c index ba8f43278a44..951c002b05df 100644 --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c @@ -78,12 +78,12 @@ static void mdp5_plane_install_rotation_property(struct drm_device *dev, if (!dev->mode_config.rotation_property) dev->mode_config.rotation_property = drm_mode_create_rotation_property(dev, - DRM_REFLECT_X | DRM_REFLECT_Y); + DRM_ROTATE_0 | DRM_REFLECT_X | DRM_REFLECT_Y); if (dev->mode_config.rotation_property) drm_object_attach_property(&plane->base, dev->mode_config.rotation_property, - 0); + DRM_ROTATE_0); } /* helper to install properties which are common to planes and crtcs */ |