Commit 25aaa3a1 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Daniel Vetter

drm: initialize default rotation value to DRM_ROTATE_0

When no console framebuffer is enabled, the default plane state is
defined by plane reset function. If driver uses generic helper, then
rotation property is set to zero. This is not a valid value for that
enum. This patch sets default rotation value to DRM_ROTATE_0.
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1453192008-13283-1-git-send-email-m.szyprowski@samsung.comSigned-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent c6c5c7fa
...@@ -2532,8 +2532,10 @@ void drm_atomic_helper_plane_reset(struct drm_plane *plane) ...@@ -2532,8 +2532,10 @@ void drm_atomic_helper_plane_reset(struct drm_plane *plane)
kfree(plane->state); kfree(plane->state);
plane->state = kzalloc(sizeof(*plane->state), GFP_KERNEL); plane->state = kzalloc(sizeof(*plane->state), GFP_KERNEL);
if (plane->state) if (plane->state) {
plane->state->plane = plane; plane->state->plane = plane;
plane->state->rotation = BIT(DRM_ROTATE_0);
}
} }
EXPORT_SYMBOL(drm_atomic_helper_plane_reset); EXPORT_SYMBOL(drm_atomic_helper_plane_reset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment