]> git.baikalelectronics.ru Git - kernel.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)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 12 Feb 2020 17:32:58 +0000 (18:32 +0100)
commite310586f17a0789531d83507fa77c8b7ee888123
tree927c307a61ea4c642ee9df3c75857425ec2a9772
parent0df5f6ead6c88f80addd7df4fc378e694b9e3106
drm/modes: Allow DRM_MODE_ROTATE_0 when applying video mode parameters

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