]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/modes: Allow DRM_MODE_ROTATE_0 when applying video mode parameters
authorStephan Gerhold <stephan@gerhold.net>
Fri, 17 Jan 2020 15:34:29 +0000 (16:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:25 +0000 (07:18 +0100)
commit2dec33be9920da2ed446207a063f27842cf2094b
treef6b319e3d39c9a5cfb1a5cdb7f26e1c1c61b00fe
parentb7207241d1300613000e7c271e6047a3f5975349
drm/modes: Allow DRM_MODE_ROTATE_0 when applying video mode parameters

[ Upstream commit 5c320b6ce7510653bce68cecf80cf5b2d67e907f ]

At the moment, only DRM_MODE_ROTATE_180 is allowed when we try to apply
the rotation from the video mode parameters. It is also useful to allow
DRM_MODE_ROTATE_0 in case there is only a reflect option in the video mode
parameter (e.g. video=540x960,reflect_x).

DRM_MODE_ROTATE_0 means "no rotation" and should therefore not require
any special handling, so we can just add it to the if condition.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200117153429.54700-3-stephan@gerhold.net
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_client_modeset.c