]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/mediatek: Add support for 180-degree rotation in the display driver
authorJason-JH.Lin <jason-jh.lin@mediatek.com>
Mon, 18 Nov 2024 02:51:26 +0000 (10:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2025 16:15:50 +0000 (17:15 +0100)
commite719611285cd39e7a8987f4491eedb318a701e4d
tree5619a7eaf014feeeb9ce12e7ea7aeab8a4a80c9f
parentb1b2353d768f1b80cd7fe045a70adee576b9b338
drm/mediatek: Add support for 180-degree rotation in the display driver

[ Upstream commit 5c9d7e79ba154e8e1f0bfdeb7b495f454c1a3eba ]

mediatek-drm driver reported the capability of 180-degree rotation by
adding `DRM_MODE_ROTATE_180` to the plane property, as flip-x combined
with flip-y equals a 180-degree rotation. However, we did not handle
the rotation property in the driver and lead to rotation issues.

Fixes: 74608d8feefd ("drm/mediatek: Add DRM_MODE_ROTATE_0 to rotation property")
Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20241118025126.30808-1-jason-jh.lin@mediatek.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c