Skip to content

Commit d95b00f

Browse files
Mark YacoubChun-Kuang Hu
authored andcommitted
drm/mediatek: Set the default value of rotation to DRM_MODE_ROTATE_0
At the reset hook, call __drm_atomic_helper_plane_reset which is called at the initialization of the plane and sets the default value of rotation on all planes to DRM_MODE_ROTATE_0 which is equal to 1. Tested on Jacuzzi (MTK). Resolves IGT@kms_properties@plane-properties-{legacy,atomic} Signed-off-by: Mark Yacoub <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 73d3724 commit d95b00f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/mediatek/mtk_drm_plane.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ static void mtk_plane_reset(struct drm_plane *plane)
4444
state = kzalloc(sizeof(*state), GFP_KERNEL);
4545
if (!state)
4646
return;
47-
plane->state = &state->base;
4847
}
4948

49+
__drm_atomic_helper_plane_reset(plane, &state->base);
50+
5051
state->base.plane = plane;
5152
state->pending.format = DRM_FORMAT_RGB565;
5253
}

0 commit comments

Comments
 (0)