]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Set the default value of rotation to DRM_MODE_ROTATE_0
authorMark Yacoub <markyacoub@chromium.org>
Mon, 13 Dec 2021 16:07:22 +0000 (11:07 -0500)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 13 Dec 2021 23:17:50 +0000 (07:17 +0800)
commite2bcfd7e9bdda1ab606fbce0fd7b90a533fe688d
tree86ab3b195133f5173065c6aa4dee22eb2c1b0f97
parentdbe93b0053cf569fa4752a2d891c7ecd7b858e4f
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 <markyacoub@chromium.org>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_plane.c