]> www.infradead.org Git - users/willy/linux.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)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 25 Dec 2024 15:27:32 +0000 (15:27 +0000)
commit5c9d7e79ba154e8e1f0bfdeb7b495f454c1a3eba
treea809cf7f936dfb3056fe48d974393d5868491626
parentf8d9b91739e1fb436447c437a346a36deb676a36
drm/mediatek: Add support for 180-degree rotation in the display driver

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>
drivers/gpu/drm/mediatek/mtk_disp_ovl.c